d3lta 10 Posted February 26, 2012 Hi masters, I created a script to move the player after your death for a specific place (by markers ) in the map, but, after death, the player become invisible, no shooting more from IA. :j: What's the problem of this script: waitUntil { waitUntil { ! alive player }; waitUntil { alive player }; _antdst=100000000; _mksel="rpw1"; for "_x" from 1 to 10 do { _posmk = format["rpw%1",_x]; _dst = getMarkerpos _posmk distance getpos player; if (_dst < _antdst ) then { localize format["MARK_DEF%1",_posmk]; _antdst = _dst; _mksel = _posmk; }; }; player setPos getMarkerPos _mksel; playSound "SinoRess"; false }; Is Setpos bugging? :confused: Ps. I'm using ARMA2:OA , without Addons. Best regards Share this post Link to post Share on other sites
demonized 20 Posted February 26, 2012 cant see anything off, most likely some other script is doing the issue, have you tried testing it in a clean mission? only the script and a the enemy to check with. Share this post Link to post Share on other sites
d3lta 10 Posted February 26, 2012 (edited) cant see anything off, most likely some other script is doing the issue, have you tried testing it in a clean mission?only the script and a the enemy to check with. Thanks Demonized, My tests are: FIXED Problem, shooting from AI it's OK. init.sqf: //[] execVM "respawnctrl.sqf"; or Problem Backs Again,not shooting from AI.... init.sqf: [] execVM "respawnctrl.sqf"; I tested only the script in a clean mission and problem gone. I don't know about this strange behaviors in .sqf script language... frustrating =( I will to use another method to respawn in my main mission. "Time is money".... :( Best Regards Edited February 26, 2012 by D3lta Share this post Link to post Share on other sites