whats wrong with my code?


Ok so

.TurnOff()

requires an agent as the parameter, so it should become .TurnOff(Agent)

.IsRegistered(Player)

Is just not a function of the player_counter_device you’re probably looking for .IsCounted(Agent)

in AssignWinningLoadout function you are having as a parameter the class DESIGNER device which can be confused with the class SELECTOR device which is the one used to swap the classes of players and the function is not .GrantClass() but rather .ChangeClass()

as for OnLoadoutTimerSucess function replace the parameter from this (Agent: agent?) to this (MaybeAgent : ?agent) and then inside the function run if(Agent:=MaybeAgent?) this is done because the timer may or may NOT return an agent

1 Like