Page 1 of 1

Quick newb question

PostPosted: Sun May 10, 2009 4:50 am
by sillydraco
alright, i want to set up a script editor scenario that i can use flexibly in many different situations using an if/then script and an actor. how do i do IF ("actor" exists) THEN (whatever). is there a code to show that an actor exists? not an action, just a statement saying that an actor exists.

Re: Quick newb question

PostPosted: Sun May 10, 2009 5:42 am
by skydereign
There might be a more direct way than this, but I can't think of it now.
If the ActorCount of actor name is greater than 0, that means the actor exists.
Code: Select all
if(ActorCount("name")>0)
{
    //
}

Re: Quick newb question

PostPosted: Mon May 11, 2009 5:12 am
by sillydraco
aha! thanks so much! <3