Jump to content

Recommended Posts

I need to force bout not to move because i am generating many boats and some of them just swim away.
I have tried :

doStop _veh;

_veh forceSpeed 0;

but both unsucesfull

 

I found only one thing witch is preventing boat from moving:

 

_veh enableSimulation false;

but this makes player screen black and player is not able to leave the vehicle

 

my fix with eventHandler was not working as well

_veh addEventHandler ["GetIn",{
    _veh enableSimulation true;}];

Looks like because Event GetIn is not working while : _enableSimulation false; 
Thx for any help

Share this post


Link to post
Share on other sites

You have a problem passing the variable to the EH code:

 

_veh addEventHandler ["GetIn",{
    (_this select 0) enableSimulationGlobal true

}];

  • Thanks 1

Share this post


Link to post
Share on other sites

Love you! No idea tat could be the problem.. So this code is working great:

_veh enableSimulation false;
_veh addEventHandler ["GetIn",{               
    (_this select 0) enableSimulationGlobal true;}];

this code disable all movement of the boat and Handler enable the boat 

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

×