I currently have it set this way:
damage volumes are disabled on game start (global)
when a player enters vehicle: disabled again
when player exits vehicle: enabled ( to force them back in the vehicle)
this is currently affecting all players on a team. however, my intention is to have this affect the triggering payer.
how would i do this with verse?
You can’t enable a damage volume per player, so I’d suggest trying to damage the player direct from code or using a health powerup device
You could also set the volume to only affect a class and switch the player to that class when they leave a vehicle?
Hello i dont know if you are still looking for a solution, here is a solution that worked for me:
When you have made a @editable variable with the vehicle spawner type,
use the AgentExitsVehicleEvent and subscribe to a custom function that you made.
The AgentExitsVehicleEvent sends the Agent that leaves the vehicle and gives it to the custom function, where you can acces the Agent.
You want to damage the player, so make an if statement and create a variable and give it the value: Agent and call the GetFortCharacter[] method on the Agent.
now you have a variable of the fortnitecharacter of the player.
Inside the if statement u use the new variable that you have just made and use the Damage()
method so you deal damage to the player that exits the car