Pacino_Arma3
Member-
Content Count
5 -
Joined
-
Last visited
-
Medals
Everything posted by Pacino_Arma3
-
How to prevent AI change seat in a vehicle?
Pacino_Arma3 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I put one AI unit on passenger seat in a vehicle in 3D editor, The AI is not in player's group. But when the mission start. The AI will change to the driver seat. I don't want the AI change seat ! Recently, I'm making a escape mission. The mission Successful condition is players drive the specific vehicle(a truck) and reach the escape area, that's easy to make. But the failure condition is so difficult to make. I want the mission failed when the vehicle(truck) be destroyed. I found the enemy AI never attack an empty vehicle. If players are not in the truck, AI will not attack the truck and the mission will be easy to completed. So I put one friend AI in the truck (passenger seat) and force this AI disable to move and disable simulation. But if this AI is in Players' group and the group leader can still order the AI to get off the truck by using radio(whatever the AI has radio) . If the friend AI is not in player's group, when the mission start the AI will change to the driver seat. How to solve it? Or do you know how to force AI attack empty vehicles? Thanks All! -
[HELP!]How to prevent enemies attacking a no weapon player?
Pacino_Arma3 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I want no make a mission and play in MP ,I create many playable units and they all have different special ability. But now I have some trouble. 1.One guy has a special ability: Enemies don't attack him if the guy has no weapon.When the guy has some weapons, Enemies will attack him. 2.How to hide a player in MP? I Know the code : _unit hideObjectGlobal true; I make the code in "onplayerrespawn.sqf" but it's no use in MP!! Thanks!!! -
[HELP!]How to prevent enemies attacking a no weapon player?
Pacino_Arma3 replied to Pacino_Arma3's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks bro! You r really a good guy! -
[HELP!]How to prevent enemies attacking a no weapon player?
Pacino_Arma3 replied to Pacino_Arma3's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks @pierremgi ! The question 1 has been solved!!!U R really my teacher! But now,question 2, I write the code "your_func = {player addAction [....]};" in each init.sqf/initServer.sqf/initplayerlocal.sqf/initserver.sqf and then "call your_func;" in onplayerrespawn.sqf.My unit can be hidden now ! But when I play single game or local server, AI enemies can't see me and when I play MP game(use the TADST server) ,AI enemies can still see me and kill me !! why ? -
[HELP!]How to prevent enemies attacking a no weapon player?
Pacino_Arma3 replied to Pacino_Arma3's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks pierremgi! But.. 1.I copy your code in "onplayerrespawn.sqf" and replace Myunit by _this , its not use ! 2.It's just one guy's special ability and I add the ability on "addaction", I want the guy be invisible when he active his ability in multiplayer game .