Author Topic: Dayz Mod teleport script  (Read 2618 times)

0 Members and 1 Guest are viewing this topic.

hoodlum420

  • Cheater Apprentice
  • *
  • Posts: 12
    • View Profile
Re: Dayz Mod teleport script
« Reply #15 on: June 14, 2012, 03:03:13 am »
Code: [Select]
_myPos = player getVariable["lastPos",[]];
if (count _myPos > 0) then {
player setVariable["lastPos",_mylastPos, true];
player setVariable["lastPos",[]];
};

_lastPos = getPosATL player;
if (player == vehicle player) then {
if (_mylastPos distance _lastPos > 200) then {
if (alive player) then {
player setPosATL _mylastPos;
};
};
} else {
if (_mylastPos distance _lastPos > 600) then {
if (alive player) then {
player setPosATL _mylastPos;
};
};
};

cant seem to get this to work