Drag[en]gine Script Module DragonScript
1.23
|
Foot step event. More...
Public Member Functions | |
DVector | getOffset () |
Offset relative to actor coordinate system to play foot step at. More... | |
float | getRange () |
Range to use for created speakers. More... | |
float | getRollOff () |
Roll-off to use for created speakers. More... | |
WeightedRandomList | getSounds () |
List of sounds to pick one from to play this event. More... | |
float | getTime () |
Activation time. More... | |
String | getType () |
Optional type string (by default null). More... | |
float | getVolume () |
Volume to use for created speakers. More... | |
Event | new (float time) |
Create foot step event. More... | |
Event | new (float time, String type) |
Event | new (float time, WeightedRandomList sounds) |
Event | new (float time, WeightedRandomList sounds, float volume, float range) |
Event | new (float time, WeightedRandomList sounds, float volume, float range, DVector offset) |
Event | new (float time, WeightedRandomList sounds, float volume, float range, DVector offset, float rollOff) |
Event | new (float time, WeightedRandomList sounds, float volume, float range, DVector offset, float rollOff, String type) |
Event | new (float time, WeightedRandomList sounds, float volume, float range, DVector offset, String type) |
Event | new (float time, WeightedRandomList sounds, float volume, float range, float rollOff) |
Event | new (float time, WeightedRandomList sounds, float volume, float range, String type) |
Event | new (float time, WeightedRandomList sounds, String type) |
Sound | randomSound () |
Random sound from the list of sounds to play or null if list is empty. More... | |
void | setOffset (DVector offset) |
Set offset relative to actor coordinate system to play foot step at. More... | |
void | setRange (float range) |
Set range to use for created speakers. More... | |
void | setRollOff (float rollOff) |
Set roll-off to use for created speakers. More... | |
void | setSounds (WeightedRandomList sounds) |
Set list of sounds to pick one from to play this event. More... | |
void | setType (String type) |
Set optional type string or null if not needed. More... | |
void | setVolume (float volume) |
Set volume to use for created speakers. More... | |
Public Attributes | |
Sound | pLastRandomSound |
DVector | pOffset |
float | pRange |
float | pRollOff |
WeightedRandomList | pSounds |
float | pTime |
String | pType |
float | pVolume |
Foot step event.
Event time is immutable but all other parameters can be changed if required. Optionally a type can be assigned to identify the event type for use by other behaviors to know what sound or effects to produce.
DVector Dragengine.Scenery.ECBehaviorFootSteps.Event.getOffset | ( | ) |
Offset relative to actor coordinate system to play foot step at.
float Dragengine.Scenery.ECBehaviorFootSteps.Event.getRange | ( | ) |
Range to use for created speakers.
float Dragengine.Scenery.ECBehaviorFootSteps.Event.getRollOff | ( | ) |
Roll-off to use for created speakers.
WeightedRandomList Dragengine.Scenery.ECBehaviorFootSteps.Event.getSounds | ( | ) |
List of sounds to pick one from to play this event.
float Dragengine.Scenery.ECBehaviorFootSteps.Event.getTime | ( | ) |
Activation time.
String Dragengine.Scenery.ECBehaviorFootSteps.Event.getType | ( | ) |
Optional type string (by default null).
float Dragengine.Scenery.ECBehaviorFootSteps.Event.getVolume | ( | ) |
Volume to use for created speakers.
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time | ) |
Create foot step event.
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time, |
String | type | ||
) |
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time, |
WeightedRandomList | sounds | ||
) |
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time, |
WeightedRandomList | sounds, | ||
float | volume, | ||
float | range | ||
) |
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time, |
WeightedRandomList | sounds, | ||
float | volume, | ||
float | range, | ||
DVector | offset | ||
) |
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time, |
WeightedRandomList | sounds, | ||
float | volume, | ||
float | range, | ||
DVector | offset, | ||
float | rollOff | ||
) |
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time, |
WeightedRandomList | sounds, | ||
float | volume, | ||
float | range, | ||
DVector | offset, | ||
float | rollOff, | ||
String | type | ||
) |
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time, |
WeightedRandomList | sounds, | ||
float | volume, | ||
float | range, | ||
DVector | offset, | ||
String | type | ||
) |
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time, |
WeightedRandomList | sounds, | ||
float | volume, | ||
float | range, | ||
float | rollOff | ||
) |
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time, |
WeightedRandomList | sounds, | ||
float | volume, | ||
float | range, | ||
String | type | ||
) |
Event Dragengine.Scenery.ECBehaviorFootSteps.Event.new | ( | float | time, |
WeightedRandomList | sounds, | ||
String | type | ||
) |
Sound Dragengine.Scenery.ECBehaviorFootSteps.Event.randomSound | ( | ) |
Random sound from the list of sounds to play or null if list is empty.
void Dragengine.Scenery.ECBehaviorFootSteps.Event.setOffset | ( | DVector | offset | ) |
Set offset relative to actor coordinate system to play foot step at.
Default is 5cm above acter center on ground.
void Dragengine.Scenery.ECBehaviorFootSteps.Event.setRange | ( | float | range | ) |
Set range to use for created speakers.
Range will be clamped to 0 if negative. Default is 10.
void Dragengine.Scenery.ECBehaviorFootSteps.Event.setRollOff | ( | float | rollOff | ) |
Set roll-off to use for created speakers.
Roll-off will be clamped to 0 if negative. Default is 1.
void Dragengine.Scenery.ECBehaviorFootSteps.Event.setSounds | ( | WeightedRandomList | sounds | ) |
Set list of sounds to pick one from to play this event.
void Dragengine.Scenery.ECBehaviorFootSteps.Event.setType | ( | String | type | ) |
Set optional type string or null if not needed.
void Dragengine.Scenery.ECBehaviorFootSteps.Event.setVolume | ( | float | volume | ) |
Set volume to use for created speakers.
Volume will be clamped to 0 if negative. Default is 1.
Sound Dragengine.Scenery.ECBehaviorFootSteps.Event.pLastRandomSound |
DVector Dragengine.Scenery.ECBehaviorFootSteps.Event.pOffset |
float Dragengine.Scenery.ECBehaviorFootSteps.Event.pRange |
float Dragengine.Scenery.ECBehaviorFootSteps.Event.pRollOff |
WeightedRandomList Dragengine.Scenery.ECBehaviorFootSteps.Event.pSounds |
float Dragengine.Scenery.ECBehaviorFootSteps.Event.pTime |
String Dragengine.Scenery.ECBehaviorFootSteps.Event.pType |
float Dragengine.Scenery.ECBehaviorFootSteps.Event.pVolume |