Jump to content
mankyle

Checking if a vehicle is in another vehicle (ViV) for a useraction condition

Recommended Posts

So

 

I have a big carrier and I want to use custom useractions (defined in the config.cpp) for loading other vehicles (mainly Helicopters) inside of the carrier.

 

I thought that checking if  vehicle player was in the array defined by is vehiclecargo it would work, but it is not the case

 

Any ideas??

 

Thanks!!!

Share this post


Link to post
Share on other sites

Is your big carrier made of multiple parts  like USS Freedom?

If yes you need to work with parts (like "Land_Carrier_01_hull_01_F") instead of the whole edited object (right click, find in config viewer) which is a base class ("Land_Carrier_01_base_F").

 

Anyway, the vehicle in vehicle commands are working with built VIV objects.
If not, you can check for an object proximity (nearestobjects [<a position here> ,["Land_Carrier_01_hull_base_F"],50]) (that's for USS Freedom)   or even a position (stationary object)

 

 

Share this post


Link to post
Share on other sites

Sorry...

I got it working by using the scripting command "in"

 

Thanks!!!

 

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

×