Jump to content
Sign in to follow this  
[lol]clan killer bee

Getting peeps out of vehicle, outro script  !

Recommended Posts

Ello, well here I'm again help.gif

My question this time is about peeps getting out of a vehicle in script  !

It is for a outro.sqs , and the problem is that when the outro runs and someone is in  a vehicle you don't get to see them only the name and a empty space !

I have tried this line but didn't work with players and I think it is a command given my the leader of a group ?

Anyway it worked with the AI's with there leader , than tested it in MP and didn't work  !

This is the line I used

Quote[/b] ]unassignVehicle pl1

Anyone has a idea, or know how to get it done please share it with me !

Thanks !

Share this post


Link to post
Share on other sites

A simple setpos should work for players.

(And additional unassignvehicle/dostop, just in case the unit could be an AI. Otherwise it would run to back to the vehicle or off to a waypoint ect)

Share this post


Link to post
Share on other sites

Hmm I kinda understand what your saying , but I'm a noob with scripts . crazy_o.gif

The setpost you would place them somewhere on the map , if I understand it right .

Might be handy for the tank or something like that but if I would implant it in the script and someone would stand on a building or near the water they might ending up falling or drowning ? whistle.gif

Would be funny though rofl.gif

but not my intension .

What kind of idea of line do I need to think and to use ?

notworthy.gif

Share this post


Link to post
Share on other sites

SetPos out of a vehicle is fine in a cutscene providing you don't need the guy in the rest of the mission, it really confuses their ai later.

unassignVehicle unit

is best followed with a

[unit] allowGetIn false

instruction to stop him getting back in again.

Share this post


Link to post
Share on other sites

Well think I found it !

This is what I found  !

Quote[/b] ]player21 action ["eject", vehicle pl21]

Need to do a big test on it in MP, but seems to work in the editor ! whistle.gif

Thanks so far for all the help you have gaven me sofar !

Two tumbs up.

Now I gonna test it trougly and make sure when eject in vehicle it does in such a way noone still dies ! crazy_o.gif

Share this post


Link to post
Share on other sites

If you eject a unit from a vehicle you also need to unassignVehicle as well.

Share this post


Link to post
Share on other sites

Well this is for a outro.sqs, just ran it and they all got out of the vehicle  ( not chopper  rofl.gif ).

After that the mission is finished  !

This is for a CO-OP mission so all the players will be players not AI also disabled AI in the dir so there is no option for AI  !

This is what I have now

Quote[/b] ]pl1 action ["eject", vehicle pl1]

Maybe I should make it like this than ?

Quote[/b] ]pl1 action ["eject", vehicle pl1]; pl1 unassignVehicle

Can try it ! wow_o.gif

Well I need to make that stop thuingy too, what I could find where these comments in the ref like the other guys said

Quote[/b] ]doStop unitOne

Maybe this might work

Quote[/b] ]doStop _vehicles

wothy of trying wink_o.gif

Share this post


Link to post
Share on other sites

These dostop, unassignvehicle and allowgetin commands should only controll the ai, they won't stop the players.

If you want to stop an empty or even player controlled vehicle better try setvelocity [0,0,0]

Share this post


Link to post
Share on other sites

vehiclename setFuel 0

combined with

vehiclename setVelocity [0,0,0]

will prevent it from starting to move again under player control.

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  

×