harIII Posted October 5, 2009 Share Posted October 5, 2009 I need a script that does the following: if (creature is not in the module) spawn the creature; then or else (creature is already in the module) removes the creature; Link to comment Share on other sites More sharing options...
Star Admiral Posted October 5, 2009 Share Posted October 5, 2009 Try this: void main() { if( GetObjectByTag( "creaturetag" ) == OBJECT_INVALID ) CreateObject( OBJECT_TYPE_CREATURE, "creaturetag", Location( Vector( 0.0, 0.0, 0.0 ), 0.0 ) ); else DestroyObject( GetObjectByTag( "creaturetag" ) ); } - Star Admiral Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.