DYNA/game object:Vent
< DYNA
This object defines a vent (steam emitter).
game_object:Vent | |
---|---|
Version | 1 |
Hash | 0x4E09EC43 |
Games used | The SpongeBob SquarePants Movie Ratatouille Prototype |
Vents have 3 states:
- Idle - not shooting steam
- Warn - shoots a little steam to warn the player
- Damage - shoots steam at full blast and damages the player when they touch it
Vents have a damage area in the shape of a box, similar to a box TRIG. You can specify the lower and upper corners of the box, which are relative to the vent's origin/position and rotated by the vent's rotation.
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | Asset ID | game_object:VentType | Vent type Asset ID |
0x04 | Vector3 | Position | X, Y, Z |
0x10 | Vector3 | Rotation | Yaw, Pitch, Roll |
0x1C | Vector3 | Damage box - lower corner | Lower corner offset of the damage box |
0x28 | Vector3 | Damage box - upper corner | Upper corner offset of the damage box |
0x34 | float | boulderInfluence | How fast it will push boulders (SpongeBall, SpongeBowl, etc.) during the damage state |
0x38 | uint | Flags |
|
0x3C | float | Idle time | How long the vent will stay in idle state |
0x40 | float | Warn time | How long the vent will stay in warning state |
0x44 | float | Damage time | How long the vent will stay in damage state |
EventsEdit
ResetEdit
Sets the vent to idle state. Note: this is bugged, it doesn't stop the current sound. Use VentSetStateIdle instead.
Scene FinishEdit
Same as Reset.
VentSetStateIdleEdit
Sets the vent to idle state.
VentSetStateWarnEdit
Sets the vent to warning state.
VentSetStateDamageEdit
Sets the vent to damage state.
VentSetStateOffEdit
Turns the vent off. You can send any VentSetStateXXX event to turn it back on.