OnObjectTypeRemoved

Usage

void OnObjectTypeRemoved( int ObjectType, int PosX, int PosY, int PosZ, int angle, int MidPosX, int MidPosY, int MidPosZ)


Summary

This event is fired whenever an object is removed.


More Information

ObjectType = The object's type number
PosX, PosY, PosZ = The objects "top left" coordinates.
angle = The object's angle
MidPosX, MidPosY, MidPosZ = The object's centre coordinates.

This event receives a lot of object coordinate data because it is designed to encapsulate the adding of wasted sprites.

Note that objects are removed after they die (this allows to dead aircraft to fall to the ground before they are removed etc).  use OnObjectTypeDie to trap object death events.

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