Jump to content
Sign in to follow this  
Redskin53

setpos

Recommended Posts

i am trying to do a CTF on water,the problem i have is i have to use setpos for the objects which is fine but for units(west and east) i have to put the same line in the activation field.when a unit is killed and respawns that line is missing and they respawn in the water.is there a script that will run each time a unit respawns so they dont drown? or is there a command that will continualy run?

Thanks for any and all that help

Share this post


Link to post
Share on other sites

Make a trigger, and set it to "repeatedly", and make its condition field "Alive Man1" then set its activation field to "Man1 setpos [x,y,z]"

This will make the trigger ONLY go off right when the man spawns, and it wont go off again untill he dies and spawns again.

Share this post


Link to post
Share on other sites

tried what you said but it didnt work sad_o.gif

here is what i have for the units init line

this setpos [getpos this select 0, getPos this select 1,2]

all units are named w1,w2,w3 ect. and e1,e2 e3 and ect - nessassary for the ctf to run correctly.when i put your info in quotes it gave me a string error and a bool error.

need help please crazy_o.gif

Share this post


Link to post
Share on other sites

Maybe you didnt remove the quotes?

It should be<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Alive Q1In the condition field

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Q1 setpos [getpos Q1 select 0,getpos Q1 select 1,2] In the Activation field, and the trigger should be set to Repeatedly at the top

Share this post


Link to post
Share on other sites

sorry i didnt post in the earlier thread,i tried it both ways and got same error message sad_o.gif any other suggestions are welcome smile_o.gif ok i had to take out the "this" and it works! biggrin_o.gifbiggrin_o.gif

thank you soo much unclesam.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  

×