Torque 3D - Script Manual: ProximityMineData Class Reference

TorqueScript

Main   Class List   Namespace List   Online

ProximityMineData Class Reference
[Game Objects]

Stores common properties for a ProximityMine. More...

Inheritance diagram for ProximityMineData:

List of all members.

Public Member Functions

Callbacks

void onExplode (ProximityMine obj, Point3F pos)
 Callback invoked when a ProximityMine is about to explode.
void onTriggered (ProximityMine obj, SceneObject target)
 Callback invoked when an object triggers the ProximityMine.

Public Attributes

Arming

float armingDelay
 Delay (in seconds) from when the mine is placed to when it becomes active.
SFXTrack armingSound
 Sound to play when the mine is armed (starts at the same time as the armed sequence if defined).
Triggering

float autoTriggerDelay
 Delay (in seconds) from arming until the mine automatically triggers and explodes, even if no object has entered the trigger area.
float triggerDelay
 Delay (in seconds) from when the mine is triggered until it explodes.
bool triggerOnOwner
 Controls whether the mine can be triggered by the object that owns it.
float triggerRadius
 Distance at which an activated mine will detect other objects and explode.
SFXTrack triggerSound
 Sound to play when the mine is triggered (starts at the same time as the triggered sequence if defined).
float triggerSpeed
 Speed above which moving objects within the trigger radius will trigger the mine.
Explosion

float explosionOffset
 Offset from the mine's origin where the explosion emanates from.Sometimes a thrown mine may be slightly sunk into the ground. This can be just enough to cause the explosion to occur under the ground, especially on flat ground, which can end up blocking the explosion. This offset along the mine's 'up' normal allows you to raise the explosion origin to a better height.

Detailed Description

Stores common properties for a ProximityMine.

See also:
ProximityMine

Member Function Documentation

void ProximityMineData::onExplode ( ProximityMine  obj,
Point3F  pos 
)

Callback invoked when a ProximityMine is about to explode.

Parameters:
obj The ProximityMine object
pos The position of the mine explosion
Note:
This callback is only invoked on the server.
See also:
ProximityMine
void ProximityMineData::onTriggered ( ProximityMine  obj,
SceneObject  target 
)

Callback invoked when an object triggers the ProximityMine.

Parameters:
obj The ProximityMine object
target The object that triggered the mine
Note:
This callback is only invoked on the server.
See also:
ProximityMine

Member Data Documentation

Delay (in seconds) from when the mine is placed to when it becomes active.

Sound to play when the mine is armed (starts at the same time as the armed sequence if defined).

Delay (in seconds) from arming until the mine automatically triggers and explodes, even if no object has entered the trigger area.

Set to 0 to disable.

Offset from the mine's origin where the explosion emanates from.Sometimes a thrown mine may be slightly sunk into the ground. This can be just enough to cause the explosion to occur under the ground, especially on flat ground, which can end up blocking the explosion. This offset along the mine's 'up' normal allows you to raise the explosion origin to a better height.

Delay (in seconds) from when the mine is triggered until it explodes.

Controls whether the mine can be triggered by the object that owns it.

For example, a player could deploy mines that are only dangerous to other players and not himself.

Distance at which an activated mine will detect other objects and explode.

Sound to play when the mine is triggered (starts at the same time as the triggered sequence if defined).

Speed above which moving objects within the trigger radius will trigger the mine.



Copyright © GarageGames, LLC. All Rights Reserved.