Jump to content

Engine state when player enter/exit vehicle


custom

Recommended Posts

Yes, the project is still alive.

I suggest you start by looking at the two events 'PlayerEnterVehicle' & 'PlayerExitVehicle'.

https://wiki.rage.mp/index.php?title=PlayerEnterVehicle

https://wiki.rage.mp/index.php?title=PlayerExitVehicle

They both provide you the vehicle in question. You can access its property named 'engine' and get/set it as you please.

https://wiki.rage.mp/index.php?title=Vehicle::engine

I hope that helps.

Edited by -Andreas
Link to comment
Share on other sites

5 часов назад, -Andreas сказал:

Yes, the project is still alive.

I suggest you start by looking at the two events 'PlayerEnterVehicle' & 'PlayerExitVehicle'.

https://wiki.rage.mp/index.php?title=PlayerEnterVehicle

https://wiki.rage.mp/index.php?title=PlayerExitVehicle

They both provide you the vehicle in question. You can access its property named 'engine' and get/set it as you please.

https://wiki.rage.mp/index.php?title=Vehicle::engine

I hope that helps.

Hey, thank you for help, but I guess, I didnt type"Automatically". So, I mean, when Player enter vehicle, vehicle's engine turns on without any forces. I don't need it. I want.. like player enter vehicle and engine stays off if it was off

Link to comment
Share on other sites

I can confirm this on C# bridge.

Bug can be reproduced by spawning a vehicle and turning off its engine . Then you connect to the server and go to the vehicle. When the person gets in, the engine turns on automatically.

Edited by Ryson
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...