OnUpdateIDs

Usage

void OnUpdateIDs()


Summary

Use this event to store ID numbers for sounds, objects, weapons, projectiles etc in the game script.


More Information

This event is fired whenever a map is started or a saved game is loaded to keep the IDs in sync with the actual data.

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.


Example

int pBullet, pLaser;
int objBlob;

void OnUpdateIDs()
{
    pBullet = SC_GetProjectileTypeNumber("Bullet");    
    pLaser = SC_GetProjectileTypeNumber("Laser");

    objBlob = SC_GetObjectTypeNumber( "Green Blob");
}


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 to 2009 by James Bunting
www.jbplay.com/games/rod3d/

This page was automatically generated by James' Script Docs Generator