SC_AddGameObject

Usage

int SC_AddGameObject( int ObjectTypeNumber, float PosX, float PosZ, int angle)


Summary

Add's a new game object to the map.


More Information

The height of the object "Y" is set automatically , the angle is an Allegro angle where 256 represents a full circle.  This function returns the ID of the new object.


Example

// add a sheep facing south at pos 100. 200 and record the sheep's assigned object ID
int NewObjectId;
NewObjectId = SC_AddGameObject( SC_GetObjectTypeNumber("Sheep"), 100, 200, 128);


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