Im trying to do a simple thing, create a mutator zone that on player enter, refuels the car, but my knowledge is very bad, how can i do it?
Thats my draft code:
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Fortnite.com/Playspaces }
RefuelDvc := class(creative_device):
Fuel : fuel_pump_device = fuel_pump_device{}
@editable
Mutant : mutator_zone_device = mutator_zone_device{}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
Mutant.AgentEntersEvent.Subscribe(OnPlayerEnter)
OnPlayerEnter(Agent : agent):void=
Print("PlayerEnters")
# Grants fuel to `Agent`.
Fuel.Empty<public>(Agent:agent){} #error on that line