adr90 10 Posted February 22, 2014 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
UK_SPAWN 1 Posted February 22, 2014 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
adr90 10 Posted February 22, 2014 What do you mean by disabling simulation? Share this post Link to post Share on other sites
UK_SPAWN 1 Posted February 22, 2014 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
adr90 10 Posted February 22, 2014 Oh, ok so where to put this command? In v3s init field? Share this post Link to post Share on other sites
UK_SPAWN 1 Posted February 22, 2014 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
adr90 10 Posted February 22, 2014 Ok, ill try, meanwhile waiting for any alternative options. Cheers. Share this post Link to post Share on other sites
Silderoy 1 Posted February 22, 2014 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
f2k sel 164 Posted February 22, 2014 (edited) 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 February 22, 2014 by F2k Sel Share this post Link to post Share on other sites