Jump to content
Sign in to follow this  
garnett21a

Get player  out of helo in cam

Recommended Posts

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

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

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

@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 wink_o.gif

~S~ CD

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×