Quick newb question

Game Editor comments and discussion.

Quick newb question

Postby sillydraco » Sun May 10, 2009 4:50 am

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.
User avatar
sillydraco
 
Posts: 71
Joined: Fri Apr 03, 2009 7:54 am
Score: 3 Give a positive score

Re: Quick newb question

Postby skydereign » Sun May 10, 2009 5:42 am

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)
{
    //
}
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Quick newb question

Postby sillydraco » Mon May 11, 2009 5:12 am

aha! thanks so much! <3
Time for sleepy, dream of new things...new life, new reality, new wings.
Image
User avatar
sillydraco
 
Posts: 71
Joined: Fri Apr 03, 2009 7:54 am
Score: 3 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron