Class WorldSound
Represents a sound played at a certain location in the world
Inherited Members
Namespace: Slipe.Client.Sounds
Assembly: SlipeClient.dll
Syntax
public class WorldSound : Sound
Constructors
| Improve this Doc View SourceWorldSound(ExtraStations, Int32, Vector3, Boolean)
Create an extra GTA radio station sound at a 3D position in the world
Declaration
public WorldSound(ExtraStations station, int trackId, Vector3 position, bool looped = false)
Parameters
Type | Name | Description |
---|---|---|
ExtraStations | station | |
Int32 | trackId | |
Vector3 | position | |
Boolean | looped |
WorldSound(RadioStation, Int32, Vector3, Boolean)
Create a GTA radio station sound at a 3D position in the world
Declaration
public WorldSound(RadioStation station, int trackId, Vector3 position, bool looped = false)
Parameters
Type | Name | Description |
---|---|---|
RadioStation | station | |
Int32 | trackId | |
Vector3 | position | |
Boolean | looped |
WorldSound(SoundContainer, Int32, Int32, Vector3, Boolean)
Create a GTA Sfx at a 3D position in the world
Declaration
public WorldSound(SoundContainer container, int bankId, int soundId, Vector3 position, bool looped = false)
Parameters
Type | Name | Description |
---|---|---|
SoundContainer | container | |
Int32 | bankId | |
Int32 | soundId | |
Vector3 | position | |
Boolean | looped |
WorldSound(String, Vector3, Boolean, Boolean)
Create a sound in the world at a certain position
Declaration
public WorldSound(string pathOrUrl, Vector3 position, bool looped = false, bool throttled = true)
Parameters
Type | Name | Description |
---|---|---|
String | pathOrUrl | |
Vector3 | position | |
Boolean | looped | |
Boolean | throttled |
Properties
| Improve this Doc View SourceDimension
Gets and sets the dimension of this element
Declaration
public int Dimension { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
IsAttached
Get if this attachable is attached to a ToAttachable
Declaration
public bool IsAttached { get; }
Property Value
Type | Description |
---|---|
Boolean |
MaxDistance
Get and set the max distance at which this sound stops
Declaration
public int MaxDistance { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
MinDistance
Get and set the minimal distance at which the sound stops getting louder
Declaration
public int MinDistance { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
PanningEnabled
Get and set if this sound pans (hearing it closer to the left or right side of the speakers due to the camera position).
Declaration
public bool PanningEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Position
Gets and sets the position of the element
Declaration
public Vector3 Position { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
ToAttached
Get the toAttached to which this attachable is attached
Declaration
public PhysicalElement ToAttached { get; }
Property Value
Type | Description |
---|---|
PhysicalElement |
Methods
| Improve this Doc View SourceAttachTo(PhysicalElement)
Attach this attachable to a Physical Element without any offset
Declaration
public void AttachTo(PhysicalElement toElement)
Parameters
Type | Name | Description |
---|---|---|
PhysicalElement | toElement |
AttachTo(PhysicalElement, Vector3)
Attach this attachable to a Physical Element with an offset
Declaration
public void AttachTo(PhysicalElement toElement, Vector3 offset)
Parameters
Type | Name | Description |
---|---|---|
PhysicalElement | toElement | |
Vector3 | offset |
Detach()
Detach this attachable
Declaration
public void Detach()