Community Forum


Forum Overview >> Scripting

Created17.09.2020 10:25

Kirill Teltevskoy (Atrides) 17.09.2020 10:25
Hello. How to make the "enterVehicle" function in the script work when entering the vehicle?

Bilbo Beutlin (BBeutlin) 17.09.2020 11:22
If you have the vehicle 'vhcl' you can use

To make sure certain variables become updated, append
SpecializationUtil.raiseEvent(vhcl, "onEnterVehicle", true);

This works at least for singleplayer. For multiplayer maybe a little more must be considered.

Kirill Teltevskoy (Atrides) 17.09.2020 11:37
Thank you

Note: Log in to post. Create a new account here.