Originally Posted by
Hi own
Yeah. I know. His exec isn't really a RE. I was going to attempt to make this myself, but only shit I can do is edit. Currently learning. What if you wanted to put that in with a teleport script like this:
Code:
testIndex = _this select 1;
_thePlayer = _this select 2;
_myPos = getPosASL player;
// foreach loop
{
if (name _x == _thePlayer) then
{
_x setPosASL [(_myPos select 0) + 5, _myPos select 1, _myPos select 2];
};
} foreach playableUnits;
deleteMarker "respawn_west";
Then you would do:
Code:
testIndex = _this select 1;
_thePlayer = _this select 2;
_myPos = getPosASL player;
// foreach loop
{
if (name _x == _thePlayer) then
{
_temp = player;
player = "ICUPFUNNYCOLORS";
sleep 1;
player = _temp;
_x setPosASL [(_myPos select 0) + 5, _myPos select 1, _myPos select 2];
};
} foreach playableUnits;
deleteMarker "respawn_west";
But it's better to just run the Anti-TP as a script on it's own every time you spawn, so when you do want to tele, you don't have to wait an extra 1s each time.