Jump to content
Sign in to follow this  
Hacker Hunter

What kind of variable should i use to select inside of trigger?

Recommended Posts

Hello.

 

Umm, i'm really beginner at editing, so pls understanding.

 

I want to make a trigger to open door.

 

So i write this at trigger in act line.

 

  • vehiclename animate ['ramp', 1];

 

It works properly.

 

But i want to apply this order to all vehicle inside of trigge.

 

So.. what should i do?

 

pls help me.. It took me all day to think about how to do this.

Share this post


Link to post
Share on other sites

Not tested: 

{
_x animate ['ramp', 1];
} forEach thislist

 

Share this post


Link to post
Share on other sites

thisList only contains the objects which fulfill the conditions set in the trigger. So make sure those are set correctly. I belive activation should be "anything".

 

 

The easier way would be to name those objects and use the following code:


 

{

_x animate ["ramp",1];

} forEach [objectName_1,objectName_2,objectName_n];

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×