What is in the tuple payload for VehicleSpawnedEvent?

You need to store it as an optional like this :

if (_PlayerVehicle = FortCharacter.GetVehicle[]):
    set PlayerVehicle = option{_PlayerVehicle}
    Print("got PlayerVehicle")

Also your PlayerVehicle is a constant and should be a variable in order to be editable :

var PlayerVehicle : ?fort_vehicle = false

But DJEJ22 is right, if your island is not supposed to be played alone only, you need to store the data for every players in your island, hence using the map container.

1 Like