Jump to content

opusfmspol

Member
  • Content Count

    519
  • Joined

  • Last visited

  • Medals

Community Reputation

101 Excellent

3 Followers

About opusfmspol

  • Rank
    Gunnery Sergeant

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1462 profile views
  1. opusfmspol

    Custom Group Color

    When I go in the editor, the default color is white. It becomes green when STHUD is used (not sure about other mods as well). And with STHUD, using the assignTeam command will change the icon color. So maybe you were using that mod in your prior mission.
  2. opusfmspol

    Custom Group Color

    Do you mean setting the Marta group colors in High Command / subordinates? Like when HC groups have been set up, some groups default to squad colors, but the colors can't be changed in the same way team colors can? hcSetGroup _hcleader HCsetgroup [_group, _groupName, _groupColor];
  3. Be sure you're running the addRating command where the unit destroying the aircraft is local. It's the same problem the A2 SecOps "TRAP" (downed aircraft) mission suffered from. The aircraft had to be destroyed for the mission to complete, and sometimes it spawned in as damaged rather than destroyed. The player would destroy the aircraft, but then everybody turned against the player due to the hit against the player's rating. It was handled when A2 updated with Corepatch, if you have A2 you can see how it's done in the missions.pbo> som> data> scripts> TRAP folder, phase script 07. Deals with any side, whether player or AI, destroying the aircraft. Uses public variable, public variable event handler and a SOM function for multiplayer communication, but RemoteExec or RemoteExecCall can be used instead. Basically, the aircraft is local to the server. When a unit (player or AI) destroys the aircraft, the "killed" event handler spawns code and transmits a public variable for others to run the same code. The code runs only where the killer is local. The code reimburses the killer the rating lost for destroying the aircraft. The rating amount reimbursed is fixed based on the aircraft type. (Problem is timing, you can't get the killer's rating before the kill when you don't know who the killer is until the aircraft is destroyed; and as soon as the aircraft's destroyed the rating change is practically instant.) It still suffers a problem in that there can be communication delay; during the time it takes for communication to come through and the code to run local on client, the killer is vulnerable to getting killed as renegade. So when destroying the aircraft the killer has to be out of sight of others (i.e., when on foot I would order team members to watch away from me and make sure I'm not visible to others) , else protected from being shot (i.e., gunner inside a vehicle). Once the communication comes through and rating added, the killer is safe. So not a perfect fix, but hope this helps.
  4. My experience with UnitReady command has been that the check needs to be made where the unit being checked is local. Where the unit is not local, it always return true whether the unit is ready or not.
  5. Seems you're doing a retreating line defense with phases of defense lines, and want the AI to remain on line without fleeing until the order to fall back is given. You want them to stay at the current defense line (the zone). I would think disableAI / enableAI, but not sure it will work for you. Zone Restriction doesn't prevent anyone from leaving the zone, its intended to punish someone who does.
  6. Zone Restriction uses triggers. That's what it means by "sensors". Sensors are: triggers. That's the whole purpose of the ZoRA module. Keep players in an area. If they push the envelope, warn them. If they refuse to heed the warning, kill them. If you want to change its behavior to include AI conditions, waypoints, or more, copy its scripts/FSM's into your mission folder and adjust them to suit your needs.
  7. opusfmspol

    displaying successive hints

    I've been using a function for hints with boolean flag for my missions. Perhaps could revise for use with remote exec. Hope it helps.
  8. opusfmspol

    (SOLVED) kbTell has no audio.

    I believe what .kju points out is that you have speech[]= looking for a game sound instead of a custom sound. In Conversations example, "\Sound\hello.ogg" represents using game sound, "Sound\gk.ogg" and "Sound\bold.ogg" represent using custom sounds. If that's not causing the issue, then have you tried with all mods disabled, not just ACRE? First step to resolve whether mod conflict occurs.
  9. That works only if you want the state of the last player in the list. To return true when any player is unconscious: {if (_x getVariable ["ACE_isUnconscious",false]) exitWith {true}; false} foreach allPlayers
  10. opusfmspol

    Heli Land

    Can also use the waypoint condition to monitor for a true condition. Change the default "true" condition to something which returns true once all living team members are boarded.
  11. {_x assignTeam "RED"} forEach (Crew this); and, {_x assignTeam "BLUE"} forEach (Crew this);
  12. opusfmspol

    Construction Interface Script?

    Maybe a Zeus module could be used. I've tinkered with it enough to limit radius and height but didn't go any further than that. Whether it could be limited enough to correctly imitate A2 COIN, I can't say.
  13. opusfmspol

    You've played to much Arma when:

    . . . when you code using classnames without looking them up to verify, and no resulting errors. . . . when watching an Arma video, the person who did the recording opens their map, and you click the screen to try moving the map.
  14. opusfmspol

    Spawn (custom) compositions

    If not already, for debugging purposes, use -showScriptErrors in startup params and do not use -noLogs. - Using -showScriptErrors gives a black error box on screen when an error occurs. Let's you know when there is an error encountered which is quite helpful. - Not using -noLogs will catch errors in the .rpt log and lets you review the encountered error. But using -noLogs prevents the .rpt from logging errors. The problem is here . . . "Land_TentDome_F" is missing a string quote ( " ) at its end, and there is a comma ( , ) after last item of the array. One would think it should have errored on those. and here . . . createVehicle command needs a string classname to create. You made _objType an array. createVehicle can't do anything with it. One would think it should have given a "type array, expected string" error on that. An array could be used, but it really is simpler to create three objects in a row from string. A problem is that the sleep script shows "obj2" and "obj3" are variables already in use. You would need to decide what variables to use to reference the additional created objects, and how to position them when obj1 is setPos.
  15. opusfmspol

    scripting with modules

    Wouldn't it be better to have placed triggers run a single script that spawns the modules at the location? What's the purpose of using BIS_fnc_locations? Do those modules even use it? I do know using "CityCenter" with BIS_fnc_Locations is rather disappointing.
×