Jump to content
Sign in to follow this  
adr90

A little problem in stealth kind mission making.

Recommended Posts

Hi guys. I am currently making a stealth mission but I've stucked. The action is like this. Two Takistani militia guys are delivering some stuff in v3s, and civilian car is blocking thier way so they disembark , apporach to civil to ask to remove vechicle from thier way . In the meantime two german units that are hiden in bushes ( me and my friend) have to sneak into v3s cargo, and then, make thier way into base at the back of the truck. The problem is, that am auto disembarking when those militia are back to the truck and back on route. Any solution to this? Hope I've described the situation clear enough.

Share this post


Link to post
Share on other sites

could you disable the simulation on those 2 guys or something simlar? to make them do nothing basically.

Share this post


Link to post
Share on other sites

enableSimulation will "freeze" the unit, including animations, eye blinking, etc ; you cannot switchMove or playMove.

the unit can still take damages and report status and enemies by radio.

Example 1:

player enableSimulation false;

---------- Post added at 10:51 ---------- Previous post was at 10:50 ----------

there are probably many other ways tho :)

Share this post


Link to post
Share on other sites

Oh, ok so where to put this command? In v3s init field?

Share this post


Link to post
Share on other sites

yes it will work in the init field, but then the unit will be frozen when u start the mission.

you need to work out a way to run that code when the unit gets in the vehicle. or is in cargo.

Have a little search around google, here and armaholic.

If you cant find ur answer ill help you again shortly

Share this post


Link to post
Share on other sites

Ok, ill try, meanwhile waiting for any alternative options. Cheers.

Share this post


Link to post
Share on other sites

You can create an alternative "Get in" action, and attach yourself to the truck, while not technicly inside. It will look similiar, but it will not kick you out. And then an alternative "get out" to detach.

I can give you the code if the first way proposed, which is much simpler, doesnt work.

Share this post


Link to post
Share on other sites

How about using a couple of event handlers

make an array for the units who are doing the sneaking

in any unit or gamelogic init box.

sneak=[unitname1,unitname2];

place these in the vehicle

this addEventHandler ["GETIN" ,{If ((_this select 2) in sneak) then {(_this select 2) setcaptive true;} } ];
this addEventHandler ["GETOUT",{If ((_this select 2) in sneak) then {(_this select 2) setcaptive false;} } ];

Now when one of the named units try to enter the vehicle they change to captive and are ignored by Enemy.

When they get out they are reset to normal.

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×