Jump to content

173 S3

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About 173 S3

  • Rank
    Rookie

Profile Information

  • Gender
    Male
  • Location
    Arizona
  1. From what I saw I found two issues: The "_x select 3" for setVectorDirAndUp is incorrectly defined. It should be an array with two arrays like this: [[0,0,0], [0,0,0]] (BIS Wiki) createSimpleObject doesn't accept the same parameters as createVehicle, only model and location. (createSimpleObject, createVehicle) Here is a working version (Changes are on lines 3 & 8): private ["_objs"]; _objs = [ ["a3\structures_f_bootcamp\items\electronics\watercooler_01_f.p3d", [0,0,0], 79.358, [[0,0,0],[0,0,0]], false] ]; { private ["_obj"]; _obj = createSimpleObject [_x select 0, [0,0,0]]; if (_x select 4) then { _obj setDir (_x select 2); _obj setPos (_x select 1); } else { _obj setPosATL (_x select 1); _obj setVectorDirAndUp (_x select 3); }; } foreach _objs;
  2. One thing you can do is rather than apply an event handler to the unit you could use an event script. These function as event handlers that are applied to anything that respawns.
  3. I just pasted that into a blank config.cpp and I had no errors when attempting to pack and binarize it, I'm not quite sure what would be causing your issue.
  4. If you name the targets then it's possible to do it through a simple script. On the laptop you can put the code below in the init. this addAction ["Reset", "resetTargets.sqf"]; then in "resetTargets.sqf" you can put: target1 animate ["terc", 0]; target2 animate ["terc", 0]; target3 animate ["terc", 0]; (target1, target 2 and target 3 being the names of the targets) Of course there are plenty of ways of doing this such as using eventHandlers, or variables or something of that sort but this is a pretty simple way of doing it.
×