OnObjectTypeDie

Usage

void OnObjectTypeDie( int ObjectType, int ObjectId, int PosX, int PosY, int PosZ)


Summary

This event is fired whenever and object is killed.


More Information

int ObjectType = The object type that was killed (use this to determine the type of object was killed).
int ObjectId = The object ID of the object (in case you want to do anything specific).
PosX, PosY, PosZ = The coordinates of the object (handy for specifying the death sound origin coordinates).

Do not use this function to add wasted sprites, use OnObjectTypeRemoved instead.

This function is generally located in the game script.  If you override this function in a map script then the game script's version will not be called.


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 by James Bunting
www.jbgames.com/games/rod3d/

This page was automatically generated by jbgames Script Docs Generator