Jump to content
Sign in to follow this  
Ex3B

eventHandler for VIV cargo loading

Recommended Posts

I've been trying to get a script to run when a VIV capable vehicle is loads another vehicle. 

I was using the getIn event handler:

https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#GetIn

 

But it doesn't seem to be working. 

Its supposedly "Triggers when a unit enters a vehicle". I figure if I'm driving a vehicle, and the vehicle enters, then both the vehicle and its driver are now cargo of the vehicle carrying them, no?

 

I've tried adding an eventhandler in the config.cpp like so:

Quote

        class Eventhandlers: Eventhandlers
        {
            init="_this execVM 'script_1.sqf';";
            getIn="_this execVM 'script_2.sqf';";
        };

The init script works, the getIn one doesn't.

 

I also tried 

this addEventHandler ["GetIn",{this exec "script_2.sqf"}];

 

but it doesn't work... does this event handler not work with VIV, or am I doing something wrong?

Share this post


Link to post
Share on other sites

awww, suuuuuuppppppeeeerrrrr lame

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  

×