-
Content Count
170 -
Joined
-
Last visited
-
Medals
-
Medals
-
Loop through all groups of the same side
commanderx replied to punderland's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am sry... of course you want to loop all Groups. This can be done like in the examples before but with allGroups instead of allUnits. https://community.bistudio.com/wiki/allGroups -
Loop through all groups of the same side
commanderx replied to punderland's topic in ARMA 3 - MISSION EDITING & SCRIPTING
forEach is your friend here. Try something like { ...code } forEach allUnits side EAST; I am not 100% sure if this works. If not you use this. { if ((side _x) == West) then { code }; } forEach allUnits; -
ALiVE - Advanced Light Infantry Virtual Environment 1.0 (GA)
commanderx replied to ALiVEmod's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Thanks, I will try this. But how can I get helicopters under the command of the AI flying around if I dont let the AI spawn them? And maybe as asked before someone knows how to disable the radio messages from the air component commander? -
commanderx started following ALiVE - Advanced Light Infantry Virtual Environment 1.0 (GA)
-
ALiVE - Advanced Light Infantry Virtual Environment 1.0 (GA)
commanderx replied to ALiVEmod's topic in ARMA 3 - ADDONS & MODS: COMPLETE
One more thing. I am placing a military placement module over the big airport in the northeast of Malden and directly after the mission starts, several Helicopter and sometimes other assets at the airport explodes. Can I prevent that somehow? -
ALiVE - Advanced Light Infantry Virtual Environment 1.0 (GA)
commanderx replied to ALiVEmod's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Does anyone know how to disable the Radiomessages from the Air Component Commander? -
ALiVE - Advanced Light Infantry Virtual Environment 1.0 (GA)
commanderx replied to ALiVEmod's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Yes, I checked it several times. After changing to the army faction of RHS everything worked fine. -
ALiVE - Advanced Light Infantry Virtual Environment 1.0 (GA)
commanderx replied to ALiVEmod's topic in ARMA 3 - ADDONS & MODS: COMPLETE
I have a problem with a faction from RHS. rhs_faction_usmc_d When I place a player (for example Grenadier) from that faction on the map and also a military AI Commander and a Military Placement module the AI is firing on me instantly after spawning. If I use rhs_faction_usarmy_d for the AI nobody is firing at me. Any suggestions? -
All class names of a specific faction and a specific kind?
commanderx replied to commanderx's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Works like a charm. Thanks a alot!!! :-) -
Executing simple commands in MP
commanderx replied to Wozny's topic in ARMA 3 - MISSION EDITING & SCRIPTING
no, just put this inside the trigger. "hello" remoteExec ["hint", -2];} Whereever and whenever this code is executed it will send the hint command to all computers except the server. EDIT: The "-2" in the code example means the following. If you would like to execute something on the server you would write just "2" (without the minus). Because "2" is always the server! The Minus in Front of the 2 means that it will be executed everywhere except the the server. -
Executing simple commands in MP
commanderx replied to Wozny's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes, but the hint is somewhat easy to create. The following executes a hint on all computers except the server (where a hint is obviously not necessary :D ) "hello" remoteExec ["hint", -2]; The first steps are not easy but if you understand what is where and why executed it gets easier :-) -
Executing simple commands in MP
commanderx replied to Wozny's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hm, you can use all script commands, write own functions and whatever in the sqf file you opened with the addAction command. So no worries about that. Normally you find in the upper section in the BI Biki some Icons and if you hover over these icons you find out if the command is global or local. https://community.bistudio.com/wiki/createVehicle directly under CreateVehicle you find two icons. The first tells you since when this command is available and the second tells you that the command is global and the effects are global. That means if you use the create vehicle command on any computer whether its the server or any player computer the vehicle you created is available on every computer. https://community.bistudio.com/wiki/addAction Here you find that the effects of that command is local but the arguments are not necessary local. Explanation: 1. You create an addAction with a simple hint for player p1. Player 1 use the addAction and get a hint saying something. Player 2 (and all other players even the server) is not seeing the hint. 2. You create an addAction with a createVehicle inside. Player 1 use the addAction and create the vehice which is also visible to Player 2 (and of course all other players including the server) -
Executing simple commands in MP
commanderx replied to Wozny's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Well, that is the IMHO the most complicated part of programming in Arma. What is executed where and when. https://community.bistudio.com/wiki/remoteExec the following code is from https://community.bistudio.com/wiki/addAction . Read that carefully and if you have further questions fire it up :-) if (isDedicated) then { _obj = "some_obj_class" createVehicle [1234, 1234, 0]; [_obj, ["Greetings!", {hint "Hello!"}]] remoteExec ["addAction", -2, _obj]; }; -
All class names of a specific faction and a specific kind?
commanderx posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi, I would like to have a fast solution for getting all the classnames out of the Cfg_Vehicles Something like give me all class names of all men which are from faction Civil or all Cars from faction XY. I dont have a clue how to do that. -
Hi, I tried to use the Dynamic Simulation from BI but it didnt work. I put "this enableDynamicSimulation true;" in the init field but that doesnt do anything. Any hints on that matter? I tried with and without quotation marks.
- 586 replies
-
- ai spawn script pack
- aissp
-
(and 1 more)
Tagged with:
-
Advice needed regarding a dynamic convoy.
commanderx replied to Fiddi's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Since I play, edit and program Arma 3 I wasn´t able to use AI driving in a mission. It ends in exploding cars, in cars that are stuck in a wall, in cars with damaged tyres etc. etc. Even with VCom Driving I wan´t able to create a reliable driving AI. So, if it needs to be reliable drive yourself.