Jump to content

commanderx

Member
  • Content Count

    170
  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

17 Good

1 Follower

About commanderx

  • Rank
    Sergeant
  1. 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
  2. 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;
  3. 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?
  4. 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?
  5. Does anyone know how to disable the Radiomessages from the Air Component Commander?
  6. Yes, I checked it several times. After changing to the army faction of RHS everything worked fine.
  7. 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?
  8. Works like a charm. Thanks a alot!!! :-)
  9. 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.
  10. 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 :-)
  11. 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)
  12. 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]; };
  13. 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.
  14. commanderx

    AI Spawn Script Pack

    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.
  15. 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.
×