MrDj200

Untitled

Dec 17th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. _uid = getPlayerUID player;
  2. if (_uid == "76561198053995177") then {
  3.  
  4. _markerPosBox = "tempPosBox"; //"tempPosBox" ist der Marker, wo die Box hin soll
  5. _ammobox = funkKiste; //"funkKiste" ist die Box um die es geht
  6.  
  7. _stdPosBox = getPos _ammobox;
  8. _newPosBox = getMarkerPos _markerPosBox;
  9. _ammoboxAction = player addAction["Toggle Box", {
  10. _tempPosBox = getPos _ammobox;
  11. if ( _tempPosBox select 1 == _stdPosBox select 1 ) then{
  12. _ammobox setPos _newPosBox;
  13. }else{
  14. _ammobox setPos _stdPosBox;
  15. };
  16. }];
  17.  
  18. };
Advertisement
Add Comment
Please, Sign In to add comment