Cyper 18 Posted June 11, 2014 Is there any script that I can use via a trigger to move an object to a pre-defined location? What I want to do is to make an object move into a trigger zone and activate the trigger. Share this post Link to post Share on other sites
Victim9l3 11 Posted June 11, 2014 Yes. I've been doing this as a way to keep things out of sight until I need them. If I want someone to shoot out of a window while a patrol is walking on the street, I will use this. If I put him in the building there is a chance he can be seen. Since AI doesn't have the ability to hide or be sneaky or peek around corners, I use this "teleport" method to simulate him hiding. I'll set him down somewhere far away in the position I want him in. For instance, if I put him in the building and have him go prone to hide then he won't be in the right place to shoot out of the window. I can teleport him to the exact spot. It's very easy, in fact it's the same code that puts a unit in the game in the first place. "Bob setpos [24076.367, 16110.009, 0];" That's it. Bob is the name of whatever you want to move. It will instantly put him at those coordinates. I set a trigger and in the "on act." I put that code. Share this post Link to post Share on other sites
Cyper 18 Posted June 11, 2014 Thank you a lot! That solved many of my problems! :D Share this post Link to post Share on other sites
Icaruk 14 Posted June 11, 2014 objectYouWantToMove setPos (getPos triggerYouWantToActivate); objectYouWantToMove setPos (getMarkerPos "markername"); Share this post Link to post Share on other sites