Thread: [WIP] LDR's WIPs
View Single Post
Old 10-30-2010, 09:41 PM   #39
logan23's Avatar
Join Date: Aug 2007
Location: East Coast
Posts: 933
Current Game: Revenge of Revan
Veteran Modder  Forum Veteran  Contest winner - Modding  Hot Topic Starter 
you have to do a checkon one of the newly spawned npcs, so if this one npc is present, do not fire......if the npc is not present then the script will spawn them

void main() {
if ((GetEnteringObject() == GetFirstPC())){

if( GetObjectByTag( "pl1" ) == OBJECT_INVALID )

CreateObject(OBJECT_TYPE_CREATURE, "pl1", Location(Vector(12.236,4.148,0.856), 0.92));

CreateObject(OBJECT_TYPE_CREATURE, "pl2", Location(Vector(-39.104,16.36,9.345), 0.07));


Last edited by logan23; 10-30-2010 at 10:28 PM.
logan23 is offline   you may: quote & reply,