Jump to content

MacRae

Member
  • Content Count

    68
  • Joined

  • Last visited

  • Medals

Everything posted by MacRae

  1. MacRae

    Needing Trigger Help

    thankyou Kylania, And while we are talking you dont by any chance know the animation name of the animation when you are in a vehicle. so that your sitting down? If yo u do that will be a great help!
  2. MacRae

    Needing Trigger Help

    Yeah i got the thing working by changing my activation to BLUFOR, But what i need now is how to make the hint to the color red???
  3. MacRae

    Field Toilet Script

    @kylania You see the animation you used to get him sitting in there what is it called?
  4. MacRae

    Need a Script ASAP

    Oh my god, thankyou anyway for the help Kylania
  5. MacRae

    Need a Script ASAP

    So is it possible to make a popup target stay down... im confused
  6. Thankyou F2k I apriciate it! That worked!
  7. I have recently ported over a target script from arma 2, and suring yesterdays update somehow it has corrupt the files, can anyone tell me how to fix this script please, i am on a timeline and i have only 4 hours to get this fixed! please help guys! _target_name = "target"; _path = "una_targets\"; _target = _this select 0; if(count _this > 1) then {_monitor = _this select 1;}; if(count _this > 2) then {_target_name = _this select 2;}; _scoretable = []; //_target_name = _this select 3 _target setVectorUp [0,0,1]; //----------------------------------------------- //Initilize target //----------------------------------------------- //set target texture _target setObjectTexture [0,_path + 'circular_target.paa']; walk_target_pubvar = null; //get target center position _offset =[-0.0825,-1.306]; //calibrated score borders _borders = [0.310,0.280,0.250,0.220,0.180,0.150,0.120,0.090,0.050,0.035, -0.08]; _holelist = []; _score_table_count_before = 0; _action_cs = null; _action_ct = null; _action_csm = null; _action_ctm = null; //how often the the target is checked for new hits (in seconds) _sweeptime = 0.1; //----------------------------------------------- //target loop //----------------------------------------------- _xb = 0; _yb = 0; While {true} do { //if there has been new hits to the target -> update check target actions if(count _scoretable > _score_table_count_before) then { _score_table_count_before = count _scoretable; _target removeAction _action_cs; _action_cs = _target addaction [format["Inspect %1",_target_name], _path + "check_target.sqf",[_scoretable,_target_name]]; _target removeAction _action_ct; _action_ct = _target addaction [format["Clear %1",_target_name], _path + "clear_target.sqf",_target]; //Enable target actions from a monitor object if(!isNull _monitor) then { _monitor = _this select 1; _monitor removeAction _action_csm; _action_csm = _monitor addaction [format["Inspect %1",_target_name], _path + "check_target.sqf",[_scoretable,_target_name]]; _monitor removeAction _action_ctm; _action_ctm = _monitor addaction [format["Clear %1",_target_name], _path + "clear_target.sqf",_target]; }; } else { _score_table_count_before = count _scoretable; }; //if target has been cleared if (walk_target_pubvar == _target) then { _scoretable = null; //[COMBAT]Geo modification _scoretable = []; _score_table_count_before = 0; //[COMBAT]Geo modification walk_target_pubvar = null; publicVariable "walk_target_pubvar"; _target removeAction _action_cs; _target removeAction _action_ct; _monitor removeAction _action_csm; _monitor removeAction _action_csm; //Enable target actions from a monitor object if(!isNull _monitor) then { _monitor = _this select 1; _monitor removeAction _action_cs; _action_cs = _target addaction [format["Inspect %1",_target_name], _path + "check_target.sqf",[_scoretable,_target_name]]; _monitor removeAction _action_ct; _action_ct = _target addaction [format["Clear %1",_target_name], _path + "clear_target.sqf",_target]; }; }; //wait sweeptime sleep _sweeptime; //get recent hits _hits = [(getposATL _target select 0),(getposATL _target select 1),(getposATL _target select 2) - (_offset select 1)] nearObjects ["#craterOnVehicle",1]; if(count _hits > 0) then { _last_hit = _hits select (count _hits - 1); _j = 0; //iteratet trough all hits since last sweep while { !(_last_hit in _holelist) } do { _holelist = _holelist + [_last_hit]; //position of last hit (in world coords) _xh = getpos _last_hit select 0; _yh = getpos _last_hit select 1; _zh = getpos _last_hit select 2; //position of target (in world coords) _xt = getposATL _target select 0; _yt = getposATL _target select 1; _zt = getposATL _target select 2; //position of last hit (in target coords) _xb = sqrt((_xh-_xt)*(_xh-_xt) + (_yh-_yt)*(_yh-_yt)) + (_offset select 0); _yb = _zh + (_offset select 1); if (_xh < _xt) then { _xb = -_xb; }; if ((getdir _target) >= 180) then { _xb = -_xb; }; //save the hit positions into an array _scoretable = _scoretable + [_xb,_yb]; _j = _j + 1; if (count _hits > (_j)) then { _last_hit = _hits select (count _hits - (_j + 1)); }; }; }; }; P.S I take NO credit for this script it was created by Walker. Please help guys i know i can count on you! ~MacRae~
  8. dose anyone know how to define the varables?
  9. oh okay, and i know wich variables they are can i just get the code on how to define them...?
  10. what did you change line 26 to? and i dont know how to define them, can you please tell me how?
  11. Kylania that dose not work fro some reason, im just getting loads of Undefined variable errors, can you tell me how to define all the variables?
  12. MacRae

    Target System [Beta]

    Yeah thanks for everything, but is there any way for the message saying where you hit, was sent not to you, but say a Drill instructor unit member. Because im using this as a test so if the person shooting can only see it they can lie whether or not they hit it or not.
  13. Hey Guys, Im needing your help guys! What i'm looking for is a way to create a target system Similar to The UNA Target system that was in Arma 2 So if your not fimiliar to the UNA Target system is that you shoot at a target and as you hit it it registers where your shots are placed so when you have finished shooting you can go and check your score If anyone can sort this out for me it would be awesome! Thanks ~MacRae~
  14. MacRae

    Target System [Beta]

    so do i add this to the player that i want the feedback to go to?
  15. MacRae

    Target System [Beta]

    Larrow Thank you so much! but do you think that there is a way so that for another course i need is that if a player hits the target anywhere (do not matter about scoring here) that i get a message saying "Hit" And obiously if they miss i wont get a message atall?
  16. MacRae

    Target System [Beta]

    Anyone have an idea on how to do this?
  17. Hey Guys, Giving a map: I have just recently asked this but the coding has changed again, so in the initialization how do i add an map to a player? Getting Intro Music: I want to know how to make music play as a player joins into the server... Noob question again but how do i do it guys Need this as soon as possible! :) ~MacRae~ ---------- Post added at 22:50 ---------- Previous post was at 22:22 ---------- Anyone?? :D
  18. No i know how to do that, but what i want is a Custom .ogg file that plays as you spawn into the mission
  19. I have been searching, and i have worked out the map problem, but i just cant get intro music to work ...
  20. Hey Guys, Ive been looking everywhere for a Shop script that will also work with vehicles. I would like one with a dialogue with it as well no make it more interactive, If anybody has a script for this PLEASE share it with me, i will give full credit to anyone that wants to share! Please reply soon! ~MacRae~ ---------- Post added at 18:07 ---------- Previous post was at 16:48 ---------- Please Reply guys i really need help! :) ---------- Post added at 19:22 ---------- Previous post was at 18:07 ---------- Anyone?
  21. Oh okay, yeah thankyou anyway!
  22. Hey Guys, Currently im struggiling to add a map to a player, i just need the code to put in the initionalsation .... Sorry for the stupid question, ~MacRae~
  23. Oh thankyou Kylania, thats what i was doing rong, i was only doing AddItem
  24. Oh great whats your steam Zooloo?
  25. Thank You So much! Oh your awesome :D
×