Safe Destroy Object

From Dragon Age Toolset Wiki
Revision as of 19:40, 8 August 2011 by Sunjammer (Talk | contribs) (Fixing name, adding description)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Safe wrapper for DestroyObject.

void Safe_Destroy_Object(
object oObject,
int nDelayMs = 0
);
Parameters:
oObject
object to destroy
nDelayMs
time in milliseconds to delay the destruction of the object, default is for immediate destruction
Returns:

Nothing.

Source:

Core Game Resources.core_h

Description

Destroys the specified object unless it is a party member; is plot or is immortal.

Remarks

The reason for this function: there were accidents where creatures would deplete themselves as Ammo because people were not paying attention.

See also

CreateObject, DestroyObject