Jump to content
Sign in to follow this  
za0

Moving objects with trigger

Recommended Posts

Is there a way to move an object with trigger?
For example, I want an object to change its coordinates when a trigger is activated. And in this trigger will be the coordinates where this object will be moved.

Share this post


Link to post
Share on other sites

Yeah, in the triggers On Activation field just use:

_object setPos _postion;

 

Where:

_object - the object you're moving

_position - where you want to move it to

 

So it'd look something like:

object1 setPos [1234,5678];

 

https://community.bistudio.com/wiki/setPos

There's various other commands to set an object's position, just search "setPos" here for them if you need something different or just want to see what can be done. 

 

  • Like 1

Share this post


Link to post
Share on other sites
On 4/8/2022 at 4:11 AM, beno_83au said:

Yeah, in the triggers On Activation field just use:

_object setPos _postion;

 

Where:

_object - the object you're moving

_position - where you want to move it to

 

So it'd look something like:

object1 setPos [1234,5678];

 

https://community.bistudio.com/wiki/setPos

There's various other commands to set an object's position, just search "setPos" here for them if you need something different or just want to see what can be done. 

 


Tks bro! Helped a lot!

  • Like 1

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  

×