garnett21a 0 Posted May 3, 2006 I saw other guys' cam scripts with making player do various actions, Anyway,during a camera period(not in an intro,but mission), I tried both "player leavevehicle N" and "unassignvehicle player", it somehow just stayed inside. Why? And How can I get it out of the chopper? Share this post Link to post Share on other sites
hardrock 1 Posted May 3, 2006 Because both of those are "commands", which need to be executed by the unit (AI does it automatically). What you need is: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unassignVehicle player player action ["getout", vehicle player] Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted May 3, 2006 use: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_myUnit action ["eject", vehicle _myUnit] Share this post Link to post Share on other sites
Chris Death 0 Posted May 3, 2006 @ColonelSanderLite Hardrock's suggestion is fine - your's will lead into trouble for more than one reason, if you only use this single command. When being member of a group but not leader (leader = ai) he'll order you back into vehicle. When not knowing about scripting or passing variables onto scripts the receiver of your command will not know where to put or will put it into wrong place or even when put it into right place it maybe wouldn't work ~S~ CD Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted May 4, 2006 Yeah, I know, I'm just providing an alternative for discussion purposes. Mostly just thinking that since we're talking about a scripted cutscene of some sort, most of that would probably not be too big of a concern. Depending on the situation of course. Share this post Link to post Share on other sites