Jump to content

RonnieJ

Member
  • Content Count

    119
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About RonnieJ

  • Rank
    Sergeant
  1. RonnieJ

    Squad XML not working?!

    Strange... when I join a server it shows my information Ronnie xxx xxx xxx These are from the XML... but it does not show me as being in the squad...
  2. Im having a hard time getting this to work... I remember this worked before OA but now I just cant get it to work... I have 2 profiles in-game and they both have the same ID (I guess you cant change ID between players) On http://sh2.armatechsquad.com/ I have one player with the player ID found in my profile in-game. I can see that the player have joined the right squad: http://sh2.armatechsquad.com/squad/player_Sniper-C.xml http://sh2.armatechsquad.com/squad/army_DeadEcho.xml I have tried using both links in the squad box in the in-game profile but it is not working. Ideas? Strangly when I created the player on armatech I typed in the name Sniper_C since that is my in-game name but that was automatically changed to Sniper-C. I dont think that is why since im pretty sure the player is identified by the ID.
  3. Thx m8 its working great! :)
  4. shk> ye that working with the eventhandler but how do I group units together?
  5. Hey guys... im trying to add an event to a spawned unit... using createVehicle its works but then I cant link the rest of the group together (dont know how). Using createUnit they group up correctly but then the event handler wont work?? _generalgrp = CreateGroup East; //general = createVehicle ["RU_Commander", _pos, [], 0, "NONE"]; general = "RU_Commander" createUnit [_pos, _generalgrp]; general addeventhandler ["killed",{[_this] execVM "cash.sqf";}]; So what am I doing wrong? general = "RU_Commander" createUnit [_pos, _generalgrp]; general addeventhandler ["killed",{[_this] execVM "cash.sqf";}]; Dosent work with the event handler but gets grouped up correctly. general = createVehicle ["RU_Commander", _pos, [], 0, "NONE"]; general addeventhandler ["killed",{[_this] execVM "cash.sqf";}]; The eventhandler works but I cant seem to get the spawned unit to group up with _generalgrp.
  6. Roger shk... of course thats why :) thanks
  7. Hey guys im trying the following: [some code] _heli = createVehicle ["Mi24_V", _pos, [], 0, "FLY"]; [some more code] _wp2 setWaypointStatements ["true","[_heli] execVM ""spawn_heli_vehicle.sqf"""]; But when trying to use the _heli = _this select 0; in the spawn_heli_vehicle.sqf the object reference dosent seem to work :confused:
  8. RonnieJ

    AI wont eject?!

    Okay took a different approach... im not creating the group in the parachutes when the waypoint is reached :) that worked! :)
  9. RonnieJ

    AI wont eject?!

    If I do a GETOUT on the waypoint insted of just move... it lands and the pilot jumps put... when I check the chopper the groups is inside... so they are there and they have mountet hehe :) And using call BIS_fnc_spawnGroup; does create a group with a leader ---------- Post added at 05:34 PM ---------- Previous post was at 05:32 PM ---------- When you write: _xhandle=[squadName,VehicleName] execVM "jump.sqf"; Do you then meen that its the name or the object reference? Casue im pretty sure im giving the object reference atm. And... does every AI need a parachute on them?
  10. RonnieJ

    AI wont eject?!

    I have just tried this: _heli = createVehicle ["Mi24_V", _pos, [], 0, "FLY"]; _grp = [_pos, side, _units, [], [], skill] call BIS_fnc_spawnGroup; _wp2 setWaypointStatements ["true","_xhandle=[_grp,_heli] execVM ""test.sqf"";"]; And the script is run since I see the hint. if (isServer) then { hint "1"; _group = _this select 0; _vehicle = _this select 1; sleep 2; { unassignvehicle _x; _x action ["EJECT", _vehicle]; sleep 0.5 } foreach units _group; }; But the chopper is just hanging in the air and no one is leaving it.
  11. RonnieJ

    AI wont eject?!

    Thx The group and chopper is spawning later on in the mission... and the group is then foreached and put into the cargo of the chopper. The group need to eject in mid air and parachute down.
  12. Hey guys... im trying to get this AI group to eject from the chopper but they are apparently afraid to do so! :) _grp = [_pos, side, _units, [], [], skill] call BIS_fnc_spawnGroup; The choppers second waypoint: _wp2 = heli_group addWaypoint [getMarkerPos "test2", 100]; _wp2 setWaypointSpeed "COMBAT"; _wp2 setWaypointType "MOVE"; _wp2 setWaypointStatements ["true","[_heli,_grp] execVM ""test.sqf"""]; Test.sqf test = _this select 1; { _x action ["eject", _this select 0]; } forEach units test; I also tried just to have the foreach in the statement of the second waypoint but that had the same effect... no eject... :confused: ---------- Post added at 02:59 PM ---------- Previous post was at 02:36 PM ---------- setWaypointStatements is that the same as onActivation in the editors GUI for waypoints?
  13. Ah yes of course... cool thx guys ill try it out! :)
  14. Is it possible? To get an AI unit to place like C4 at an object? :confused:
×