Advertisement
Halvhjearne

DebugPic.sqf

Apr 27th, 2015
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.60 KB | None | 0 0
  1. /*
  2.     DebugPic script
  3.     by Halv, idea from machine6fd's mission.sqm version
  4.    
  5.     Copyright (C) 2015  Halvhjearne
  6.  
  7.     This program is free software: you can redistribute it and/or modify
  8.     it under the terms of the GNU General Public License as published by
  9.     the Free Software Foundation, either version 3 of the License, or
  10.     (at your option) any later version.
  11.  
  12.     This program is distributed in the hope that it will be useful,
  13.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.     GNU General Public License for more details.
  16.  
  17.     You should have received a copy of the GNU General Public License
  18.     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  19.  
  20.     Contact : halvhjearne@gmail.com
  21. */
  22.  
  23. //Change to your picture/path below
  24. _pic = "custom\problemsolving.jpg";
  25.  
  26.  
  27. //======================== Do not touch anything below this point ========================\\
  28. if(isServer)then{
  29.     diag_log "[DebugPic]: Waiting for 'Debug_static_F' to be build ...";
  30.     waitUntil{count(nearestObjects [getMarkerPos "respawn_west", ["Debug_static_F"], 30]) > 0};
  31.     _list = nearestObjects [getMarkerPos "respawn_west", ["Debug_static_F"], 30];
  32.     _box = _list select 0;
  33.     _rPos = _box modelToWorld [-0.226563,-9.76563,-5.04319];
  34.     _rDir = (getDir _box)+180;
  35.     _obj = createVehicle ["UserTexture10m_F", _rPos, [], 0, "CAN_COLLIDE"];
  36.     _obj setDir _rDir;
  37.     _obj setPos _rPos;
  38.     _obj enableSimulation false;
  39.     _obj setObjectTextureGlobal [0,_pic];
  40.     diag_log format["[DebugPic]: build texture in %1 @ [%2,%3] with texture '%4'",worldName,_rPos,_rDir,_pic];
  41. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement