Jump to content
Sign in to follow this  
gossamersolid

setPos a Trigger?

Recommended Posts

I'm using triggername setPos [x,y,z]

to set my trigger at 1000m in the sky (z-coordinate). Its not working though since my trigger is still activating when I'm at ground level.

Share this post


Link to post
Share on other sites

Are you trying to activate a trigger only by air units? There's been some threads about that lately you can search for. They were about only ground units trigger it, but same idea. :)

Share this post


Link to post
Share on other sites

well yeah I'm trying to make air units not be able to fly above 1500M to prevent some rendering exploit in warfare.

Share this post


Link to post
Share on other sites

I didn't think triggers were affected by height of themselves/units. As far as I knew you could only limit their range on the x/y plane, and they have infinite "scanning range" on the Z axis.

An idea would be just to make a script that checks plane altitudes, and if its above 1500M, then just setPos them below it or destroy them.

Share this post


Link to post
Share on other sites
An idea would be just to make a script that checks plane altitudes, and if its above 1500M, then just setPos them below it or destroy them.

Both solutions are too good for 'em! Set their velocity downwards at 600! :) Fly too high and whoosh into the ground.

Share this post


Link to post
Share on other sites

Wow... you just gave me a ridiculous idea to try in my free time. Wonder what would happen if you used setDir to reverse a plane's direction without changing velocity. That'll be interesting from the cockpit.

Share this post


Link to post
Share on other sites

use something like this as trigger condition so the trigger will only activate if the unit that triggers it is also above 1000m

this and getpos (thislist select 0) select 2 > 1000

regards

scars09

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  

×