Jump to content

pierremgi

Member
  • Content Count

    7267
  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

4737 Excellent

About pierremgi

  • Rank
    Major

Profile Information

  • Location
    Tahiti

Recent Profile Visitors

14136 profile views
  1. That doesn't exist. Try in init.sqf but remove the if (!hasInterface) exitWith {}; if you test on dedicated server. (or place this line after if you are sure you need it for something else). All line with player (createDiaryRecord) should be in initPlayerLocal.sqf
  2. if (!hasInterface) exitWith {}; means dedicated server are out. That means you can't apply from server some MEH for playable (non-played units, but respawnable by Arma engine) as far as they stay on server. As rule of thumb, all codes for player should be in initPlayerLocal.sqf (initPlayerServer can help when code concerns player but should run on server. Some commands need that). player is defined straight in initPlayerLocal.sqf Init.sqf is fine for general code, in accordance with Initialisation_Order every time a code must run on every PC (and it runs locally each time a player joins. then, if a command/function is Effect Global, you can have multiple times for this/these effect(s) ).
  3. Well, I don't know why. Try: addMissionEventHandler ["entityRespawned",{ params ["_new","_old"]; if (_new isKindOf "CAManBase") then { [_new,face _old] remoteExec ["setFace"]; [_new,speaker _old] remoteExec ["setSpeaker"]; } }]; just to be sure.
  4. init.sqf is OK. The MEH is LE (local effect) and the commands are also LE, so, in init.sqf, the code fires everywhere, locally. That doesn't hurt without interface like dedicated server.
  5. addMissionEventHandler ["entityRespawned", { params ["_new", "_old"]; if (_new isKindOf "CAManBase") then { _new setFace face _old; _new setSpeaker speaker _old } }]; If this MEH already exists, you just have to add the code (with the right variables)
  6. [_this] is probably undefined here. change _this variable for this (group leader in waypoint activation field), if I understand your context. I'm not using CBA, so check for leader or group and point at the right thing.
  7. I can't say how jebus work. We can't speak about limitation so far. Probably due to commands used for setting face (setFace?) and voice (setSpeaker?) , which are both Effect Local so you need to remoteExec them everywhere.
  8. Probably because your predators are enemySide (renegade) and not OPFOR... Could you elaborate which side or in which context these units are killing teammates? If you want to prevent unwanted collateral damage for OPFOR only, the EH handleDamage is a good way. Are you sure you apply it on units you want? Are you spawning them? For edited ones: { _x addEventHandler ["HandleDamage",{ params ["_unit", "", "_damage","_source"]; if (side _source isEqualTo EAST) then {_damage = 0}; _damage }]; } forEach units OPFOR; If you spawn them, you need to apply the EH on them also.
  9. Hello, Not sure to understand your problem. If you are sure that the spawned group in named grp_predator, so, I can't see why you couldn't make Yautja1, ..2, ..3 join it. joinSilent is a GA GE command, so you can make it work from anywhere. First thing to do is verify this group exists with it's name grp_predator, before you try to join some extra units. By the way: When you spawn a group with another function than yours (if yours, you can easily add a code on it), and if you don't have a name for this group, you need to wait for some group created. The useful event handler, here, is the MEH "groupCreated" In init.sqf: addMissionEventHandler ["GroupCreated", { params ["_group"]; if (your condition here) then { do something on this group}; }];
  10. Far less. I'm busy these weeks.
  11. hello i have a trouble  please help me :

    trigger:

    call{_tgp1 = [getPos ens1, east, (configfile >> "CfgGroups" >> "East" >> "OPF_G_F" >> "Infantry" >> "O_G_InfSquad_Assault"),(configfile >> "CfgGroups" >> "East" >> "OPF_G_F" >> "Infantry" >> "O_G_InfSquad_Assault")] call BIS_fnc_spawnGroup; _tgp1 deleteGroupWhenEmpty true;  
    _wp1 = _tgp1 addWaypoint [position twp1 , 0];   
    _wp2 = _tgp1 addWaypoint [position twp2 , 0];   
    _wp2 setWayPointType "SAD";
    hint "Enemy Group Spawned";}

     

    how i cane delete the ai spawned without delete all ai opfor in the map

    i use this in other trigger  but delete all opfor

    {if (side _x == opfor) and distance "ensi1" < 300 Then {deleteVehicle _x}} forEach allUnits;

     

  12. Triggers can be server only. In this case the activation code runs on server only. May need some remote execution for desired effect on another PC (client), depending on how argument(s) and effect(s) work in commands of the code . May be not so handy. Non-server only triggers are firing locally but the code runs everywhere the condition is met. Blufor Present, anyPlayer Present are met everywhere. bob inArea thisTrigger , bob in thisList (need pre-condition like above) are met everywhere bob is defined (everywhere if variable name in editor) but: player inArea thisTrigger, player in thisList fires on player's PC only Then, the activation code itself is effect global whatever the edited trigger is (see more info : makeGlobal in createTrigger command). That means all PCs will be finally sync about the effect of the code. If you need a specific effect on a specific PC (using local effect commands), you need to script the makeGlobal false version of the createTrigger command.
  13. vehicle someDude == daChoppa or for any helo: vehicle someDude isKindOf "helicopter" //(but works also for parachute, as chutes are helos in arma. You can add a filter if required)
  14. That's because your ship is server local. When you remoteExec addaction for all clients, it's OK but the script of action itself stays local: run on client who called the action. As your boat is on server, you need to remoteExec (on server : 2) also each command of this code which have a local Argument (LA), as setVelocity Simple as that. Note: Now, if you have another player as driver, waiting for your push, he is the owner of the boat. You need to remoteExec setVelocity on his PC, where the boat is owned (target for remote exec is _boat) not tested.
×