Jump to content
Sign in to follow this  
Scorch052

Finding a unit's cargo index?

Recommended Posts

Anyone whos used the moveincargo [example, 0] command should know what I'm talking about. I want to find out what seat exactly a unit is in. For those curious, I want to use this to restrict an action to a unit that is only in cargo index 0 in an SOV.

Here's the opposite of what I want to do: http://forums.bistudio.com/showthread.php?107419-Vehicle-moveInCargo-Position-Indexes

Share this post


Link to post
Share on other sites

crew select 0 == driver

crew select 1 == front seat

crew select 2

crew select 3

crew select 4

crew...

Share this post


Link to post
Share on other sites

does this work if theres only one person in a vehicle?

would crew select 0 == player if the player is for instance a gunner?

Share this post


Link to post
Share on other sites

No, I'm having a similar problem, crew only returns who's in the vehicle.

Share this post


Link to post
Share on other sites

I opened up Dyslexci's st_lb_enhance addon and it has a function the apperently checks for cargo index, but I don't know if it works.

Share this post


Link to post
Share on other sites
Do you mind posting the code?

Summary:

They mapped out the model coordinates of the cargo positions on the little bird, then assign global variables and do all their checks with these...

i.e. put player in cargo slot, (chopper worldToModel (getPosATL player))

Edited by panther42

Share this post


Link to post
Share on other sites

I deleted it, sorry. If you open up st_lb_enhance.pbo and look at skidMount.sqf you'll find it.

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  

×