Kydoimos 916 Posted June 26, 2013 Is there a way to disable the 'eject' option in a vehicle? Share this post Link to post Share on other sites
mindstorm 8 Posted June 26, 2013 Unfortunatly you cannot remove those predefined action. If you want a player to remain inside a vehicle for a period of time you could script it. playerMustStayInVehicle = true; while { playerMustStayInVehicle } do { if(vehicle player != thevehicle) { player moveInDriver thevehicle; }; sleep 1; }; And you can set to false when the check should stop. Share this post Link to post Share on other sites
f2k sel 164 Posted June 26, 2013 I think there are a couple of errors. playerMustStayInVehicle = true; while { playerMustStayInVehicle } do then { if(vehicle player == player) { player moveInDriver thevehicle; }; sleep 1; }; also I'd use waituntil because if the script has started the 1 sec sleep it will take that long before putting you back in. playerMustStayInVehicle = true; while { playerMustStayInVehicle } do { waituntil {vehicle player == player}; player moveInDriver thevehicle; sleep 1; }; Share this post Link to post Share on other sites
Kydoimos 916 Posted June 26, 2013 oh, but I noticed on the new Beta missions that when you're in a helicopter you can't eject? Is that because they've used the script above? Share this post Link to post Share on other sites
f2k sel 164 Posted June 26, 2013 It may be because they have no chutes, if that's the case then maybe if you can remove the chutes that will remove the action. Share this post Link to post Share on other sites
mindstorm 8 Posted June 26, 2013 you don't need the then behind the do. Your waiuntil does the same as my function with the difference that your's checks if the player is IN a vehicle where mine checks if it's in the specified vehicle. And waituntil is a bigger performance hit (atleast that's whay I read somewhere I believe) that's why I check each second. Share this post Link to post Share on other sites
samatra 85 Posted June 26, 2013 Reason why you can't eject is probably because of http://community.bistudio.com/wiki/lockCargo Share this post Link to post Share on other sites
Kydoimos 916 Posted June 26, 2013 Ha - Can't believe it. So simple. On the unit screen you just select vehicle - locked. Easy! ---------- Post added at 12:53 ---------- Previous post was at 12:52 ---------- It's okay SaMatra, I was trying to make it so I could NOT eject. Didn't realise there was an option on the unit screen to lock the vehicle. Doh! :p Share this post Link to post Share on other sites
gossamersolid 155 Posted June 26, 2013 You cannot eject from a pilot/co-pilot/gunner seat of a chopper in A3 (as of this post). Share this post Link to post Share on other sites
f2k sel 164 Posted June 26, 2013 That was me I placed it after the do it should be after the == player) corrected now. One or two waituntils shouldn't have much impact overall. It all depends on weather you want a short deleay in exiting and being placed back. Same thing could also be done using eventhandlers. Share this post Link to post Share on other sites