Redskin53 0 Posted October 3, 2004 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
korax 4 Posted October 3, 2004 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
Redskin53 0 Posted October 3, 2004 tried what you said but it didnt work 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 Share this post Link to post Share on other sites
korax 4 Posted October 3, 2004 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
Redskin53 0 Posted October 3, 2004 sorry i didnt post in the earlier thread,i tried it both ways and got same error message any other suggestions are welcome ok i had to take out the "this" and it works! thank you soo much Share this post Link to post Share on other sites