Jump to content
Sign in to follow this  
bluevein

Trigger height

Recommended Posts

Hi all I am working on a POW camp and making an electric fence. But if a pow escapes and steels a chopper, if they accidently fly over the fence the trigger obviousley gets them.

Its for MP and here is what I have so far

Condition

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(vehicle player) in thisList

On act

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(vehicle player) setDammage 0.9; player setDammage 0.9; hint "You touched the electric fence!"; player playmove "AinvPknlMstpSlayWrflDnon_healed2";

and set on Repeatedly

What I need is to set a hight to the trigger if you can do such a thing. Thankks

Share this post


Link to post
Share on other sites

Condition:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">((vehicle player) in thisList) and ((getPos (vehicle player) select 2) < 2)

The trigger will be activated if height of player is below 2 meters. You have to check how high the fence is.

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  

×