SC_GetProjectileTypeNumber

Usage

int SC_GetProjectileTypeNumber( string &name)


Summary

Gets a projectile type number from a projectile name.


More Information

Projectile names are specified in base\game\projectiles.ini.

You should call this once at the start of your script and store the number in a global script variable for fast access when spawning projectiles.


Example

int BulletNumber; // global variables are specified outside of functions.

void OnMapStart()
{
    BulletNumber = SC_GetProjectileTypeNumber( "Bullet");
}


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