I would like to let a player get out of a vehicle using a trigger - does anyone know how to do this?
To let a player exit a vehicle using a trigger, place a trigger box or sphere in the level and add an OnComponentBeginOverlap event in the Blueprint. Check if the overlapping actor is the player or vehicle, and set a variable like CanExitVehicle
to true. In the Player Character Blueprint, set up input (e.g., “E”) to trigger the exit logic only if CanExitVehicle
is true. Use Detach From Parent, enable player movement, disable vehicle controls, and reset the camera. Test to ensure the system works smoothly and only within the trigger area.
4o
Unfortunately, I can’t follow your instructions - is that possible with verse? (haven’t done anything with verse yet and would like to solve it without verse)
If you run the DestroyVehicle() or RespawnVehicle() in verse it will destroy/respawn the vehicle but the player will be removed.
I dont believe you can just eject the player
You could get the player location then teleport the vehicle_spawner_device to the location +110.0 then respawn the vehicle itll be sorta like they are ejecting
Okay - thanks