Jump to content
Sign in to follow this  
Gonzonaut

CreateTrigger Weirdness

Recommended Posts

Heyas,

I'm having some strangeness with a created trigger. I can create the trigger on the location of my chosen object just fine, and am able to customise the size, etc. This created trigger then activates another script when tripped.

At the moment I am having trouble with the line:

"M_Sidewinder_AA" createVehicle getpos this

Everything works well, the explosion occurs when I cross the trigger, but instead of the explosion occuring at the centre of the trigger point, the explosion occurs under the players feet.

I had expected that the 'getpos this' would refer to the trigger, and not the player.

Hopefully one of you guru's could enlighten me on what may be happening.

Share this post


Link to post
Share on other sites

this in a trigger's activation line refers to the triggering unit.

If you want to refer to the trigger itself, give it a name, and then use that in the getPos statement.

Share this post


Link to post
Share on other sites

Ah, that makes sense for why it was blowing me up instead of the trigger center up. I'll muck around with naming the trigger and getposing its loc.

Thanks for enlightening me, Kronzky.  smile_o.gif

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  

×