Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Everything posted by whiztler

  1. Give it a try. Make sure you have a closing bracket after your if then: if (_var != objNull) then {hint str _var} else {hint "No enemies near"};
  2. It returns objNull if no enemy found. So you can check against that. Note that it also returns empty enemy vehicles as enemies.
  3. @Bnae, we all learned how to script at some point, asked questions, etc. You learn by trying, reading, looking at how other people solved problems, etc. You start with learning how to debug your mission. Enable -showScriptErrors as a Arma 3 start-up param and learn/understand how to read the RPT. That will give you enough information to look up errors on the Biki, Google or ask them here. Debugging on biki: https://community.bistudio.com/wiki/Debugging_Techniques Debug tut: https://forums.bistudio.com/topic/172834-tutorial-debugging-server-issues-eg-not-loading-correctly/
  4. Like KK said, use the "killed" eventhandler or the "MPkilled" eventhandler. E.g.: player addEventHandler [ "Killed", { hint format ["%1 was killed by %2",name (_this select 0),name (_this select 1)]; }; ];
  5. I am not exactly getting what you want to do. Please post exactly how your triggers are configured (condition, on activation, etc) + scripts. Used the <> (Code) button to post your scripts. To check a variable equals something, use: variable == something; or variable isEqualto something;
  6. whiztler

    find enterable buildings

    Add to line 21: _numDoors = floor (random _numDoors);
  7. There's a solution for that: https://community.bistudio.com/wiki/onPlayerDisconnected
  8. A local variable is local to the code it is defined in. The scope of the local variable is the script/function/code. It does not exist outside that scope. A global variable exists in every scope on the client/entity it was created. Simple explanation: car.sqf > _won only exists in car.sqf. car.sqf > won exists in all scripts/code on the client it was defined on. More info on variables on KK's blog: http://killzonekid.com/arma-scripting-tutorials-variables-part-1/
  9. 1. See the init.sqf inside the archive: //[AiCacheDistance(players),TargetFPS(-1 for Auto),Debug,CarCacheDistance,AirCacheDistance,BoatCacheDistance]execvm "zbe_cache\main.sqf"; if (isServer) then {[1000,-1,true,100,1000,1000]execvm "zbe_cache\main.sqf"}; Change true to false. 2. Caching changes simulation of the vehicle. It does not hide/remove the vehicle.
  10. whiztler

    find enterable buildings

    I used "building" instead of "house". Never had any problems. But then it also indexes bus stops (Sahrani) and small barns. It does not index fence positions or bridges etc.
  11. Put an Opfor in the hunter will make the hunter enemy
  12. It should work just fine. Caching disables simulation/visibility of units that are XXX meters away from nearest player. Among other things, caching distance can be be configured. ZBE caching does not alter groups, it caches all units besides the group leader.
  13. Not strange at all. The required dependency that is baked into missions created with AIATP is AIATP related and not A3MP related. Missions created with AIAMP and released before CUP do not work with the current release of CUP.
  14. In the condition field change 'true' into 'triggerActivated activateSite' Create a trigger and name it activateSite Give the trigger the params you need to activate the site.
  15. if I recall correctly, they have a condition field. Just add: triggerActivated TriggerName Where TriggerName is the name of the trigger that triggers the site.
  16. whiztler

    nearestBuilding help

  17. I am getting the following 'You cannot play/edit this mission; It is dependable on downloadable content that has been deleted' error when opening a mission (created with AIA): aia_misc3_config aia_misc_e_config On maps: United Sahrani, Takistan, Chernarus Summer, Shapur. Haven't checked other maps. I have both CTP Core and CTP loaded. Starting a new mission on a CTP map is not a problem.
  18. Splendid achievement! Congrats with the release!
  19. . Yes, you def want to have a sleep in there. Also you might want to add a min player distance as it might break immersion if destroyed vehicles are removed before their eyes.
  20. That is incorrect. The script needs to run on the server, so: if (!isServer) exitWith {}; is correct You'll need to use the Global commands to clear/add items to the crate. The global commands are MP synched. clearWeaponCargoGlobal _crate; clearMagazineCargoGlobal _crate; clearItemCargoGlobal _crate; clearBackpackCargoGlobal _crate;
  21. If you mean to check locality of units (after transfer from server to HC for instance) than yes. You can add the 'Local’ EH. The EH fires up when locality changes.
  22. whiztler

    [MP CO37 Campaign] Two Sierra

    Alright buddy. Let me know how it turns out.
  23. whiztler

    [MP CO15 Campaign] Wolfpack Vol. 1

    Updated to v1.63. See OP for more info
  24. whiztler

    [MP CO15 Campaign] Wolfpack Vol. 2

    Updated to v1.63. See OP for more info