Page 1 of 1

"Any Actor" equivalent in a Draw Actor script

PostPosted: Fri Aug 08, 2008 11:33 pm
by smillz
is there a way in a draw actor script to use something like "Any Actor" instead of specifying an actor? For example:
instead of
Code: Select all
if(Player.x == x)
{
    x -= 10
}

I want to do something like
Code: Select all
if(Any_Actor.x == x)
{
    x -= 10
}

that's not the action I'm actually attempting, but it's an example.... You know what I mean right? :(

Re: "Any Actor" equivalent in a Draw Actor script

PostPosted: Sat Aug 09, 2008 12:30 pm
by Thanx
I don't think there's any way to do that, though I could only give a good answer if I'd have the exact example you're actually using...

Re: "Any Actor" equivalent in a Draw Actor script

PostPosted: Sun Aug 10, 2008 12:37 am
by smillz
Well, the way I really needed to use it was for positioning of any actor relevant to a certain actor, but DST gave me an idea for using an array kind of system, so I know what to do. Thanks anyway :)