-
Content Count
93 -
Joined
-
Last visited
-
Medals
Everything posted by Sgt. Dennenboom
-
GetIn EH not firing
Sgt. Dennenboom replied to Lorenz94's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Some helicopter pilot and co-pilot slots don't have eject capabilities. Instead of using: _unit action ["eject",_vehicle]; Use something that checks whether you're being booted from a heli: if (_vehicle isKindOf "helicopter") then {moveOut _unit;} else {_unit action ["eject",_vehicle];}; It's also possible to check whether the pilot is able to eject using the config (beware, jets DLC ejection seats count as not able to eject here): getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "driverCanEject") == 0; -
Use of Conditionals for "case" in switch do arguments
Sgt. Dennenboom replied to halex1316's topic in ARMA 3 - MISSION EDITING & SCRIPTING
_greaterThan = {if (_randomNumber > 500) then {_case = 1};}; Never actually runs this code, so _case = {}, which breaks the switch as you compare it with numbers. Your code fixed: _randomNumber = 1000; _randomNumber = floor random _randomNumber; _case = {}; if (_randomNumber > 500) then {_case = 1}; if (_randomNumber <= 500) then {_case = 2}; _infoType = {}; switch (_case) do { case 1: {hint format ["%1",_case];}; case 2: {hint format ["%1",_case];}; }; sleep 5; hint "Script is Over"; Though Lucullus' script is cleaner. -
Tanks - tracked vehicles driving and handling
Sgt. Dennenboom replied to oukej's topic in ARMA 3 - DEVELOPMENT BRANCH
We've had turret and commander turret indicators on vanilla vehicles for quite a while now. Only the driver doesn't have it on most vanilla vehicles, but they function very nicely. -
Only make the UAV gunner Slot available
Sgt. Dennenboom replied to Justin Bottenbruch's topic in ARMA 3 - MISSION EDITING & SCRIPTING
To lock driver seat: UAV1 lockDriver true; To lock gunner seat: UAV1 lockTurret [[0],true]; This prevents you from connecting to these positions. -
Trying to integrate TPW Furniture into an Ares Achilles Module, getting error zero divisor.
Sgt. Dennenboom replied to D. Patterson's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You use deleteAt, which shortens the array immidiatly. Since the count isn't updated each iteration, _i will eventually be larger than the actual size of the array (which gets smaller every iteration). -
Forced moving forward in straight line
Sgt. Dennenboom replied to PCanas's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You can record just one vehicle, and use that one result to playback 50 different vehicles with a delay. They will all behave in exactly the same way. -
Remove Markers in Local...
Sgt. Dennenboom replied to TheHypnoo's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You'll have to put the deleteMarker(Local) command in a loop if you want to delete an array of marker strings. So instead of: deleteMarkerLocal "marker_1"; You do: {deleteMarkerLocal _x;} forEach ["marker_1","marker_2","marker_3"]; -
CfgAmmo - Need help with this
Sgt. Dennenboom replied to Constable_'s topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
The error message says exactly what is wrong. class B_30mm_MP_Tracer_Green; class autocannon_30mm_CTWS: B_30mm_MP_Tracer_Green {}; class B_30mm_APFSDS_Tracer_Red; class autocannon_30mm_CTWS: B_30mm_APFSDS_Tracer_Red {}; You've got the "autocannon_30mm_CTWS" class defined twice. You'll need to define two versions of the 30mm_CTWS for the two parents. -
I need help adding a cool down timer to a repeatable trigger
Sgt. Dennenboom replied to Twiznak's topic in ARMA 3 - MISSION EDITING & SCRIPTING
!(p_1 inArea thisTrigger) https://community.bistudio.com/wiki/!_a -
Need some help with "temperature" script
Sgt. Dennenboom replied to seed's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Once you get the hang of the language and its quirks, it won't give you gray hairs anymore. There's not many things more relaxing for me than scripting something to work exactly as you envisioned :D Ofcourse it's not everybody's cup of tea -
Check Distance
Sgt. Dennenboom replied to Alpine_gremlin's topic in ARMA 3 - MISSION EDITING & SCRIPTING
So your script in an infinite loop could look something like this: _distance = 6.5; while {true} do { if (count (nearestObjects [player,["House","Building"],_distance]) > 0) then { systemChat format ["%1 is inside",name player]; }; sleep 0.1; }; There are also different ways of checking whether a player is inside a building. Killzone Kid made a nice and much more accurate check for whether the player is in a house on this wiki page: lineIntersectsSurfaces -
Make heli land under fire
Sgt. Dennenboom replied to redivider's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Did you try allowFleeing? Making helicopters land where you want them to is always a bit of a struggle... -
Detach and check if object is being attached? (Heli slingloading)
Sgt. Dennenboom replied to Theo1143's topic in ARMA 3 - MISSION EDITING & SCRIPTING
There is a nifty command to get all the objects being slingloaded by a vehicle: ropeAttachedObjects So in a trigger condition that detects you pickup up any kind of cargo: !isNull getSlingLoad heli1 And in a trigger condition that detects you pickup up cargo1 object: cargo1 == getSlingLoad heli1 You do want the enableRopeAttach to be put on the cargo object after it has been dropped where it needs to go, otherwise it can indeed by stolen again! So where you call your detach script add some extra stuff: heli1 setSlingLoad objNull; cargo1 allowRopeAttach false; -
[Help] Rolling Sleeves Script
Sgt. Dennenboom replied to Crimson Mage's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm not sure what you are trying to with the setVariable and toString stuff, it is not necesary if this is in a single script, and in your case doesn't work. I've simplified your script a bit. You should look into the forEach command in the wiki, it's very useful! _items = uniformItems player; player forceAddUniform "marpat1_CamoRS"; {player addItemToUniform _x;} forEach _items; I'm not a modder though, so I do not know how to make equipping the uniform automatically give you the action... -
Dynamic Vehicle Loadouts feedback
Sgt. Dennenboom replied to granQ's topic in ARMA 3 - DEVELOPMENT BRANCH
Does anybody have a fix for pylon weapons not being removed by setPylonLoadout when they are added to a non-expected turret? Pylon weapons in turrets which are not the main gunner cannot be gotten through the "weapons" command for manual removal. Pylon image can be gotten through vehicle config: getText (configFile >> "CfgVehicles" >> typeOf vehicle player >> "Components" >> "TransportPylonsComponent" >> "uiPicture") -
The _velInitial variable is updated in the while loop so it doesn't need to be determined twice every iteration. I've copied BIS's function and improved it slightly, so all the variables are the same as theirs.
-
I reported this and also gave a proper solution: https://feedback.bistudio.com/T124618
-
General Discussion (dev branch)
Sgt. Dennenboom replied to DnA's topic in ARMA 3 - DEVELOPMENT BRANCH
This happens because the plane's "bis_launchState" variable keeps its value 1 (successfull launch) after launch, which means that on the next attach it doesn't wait for the hold button action to actually set this variable to 1. This variable needs to be set to nil or -1 after either detach or launch.