Safe Destroy Object

From Dragon Age Toolset Wiki
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