If there are no compile errors, there can still be logic errors in what we’re trying to do. Do you mean you are trying to move players from one point to another and they are not getting moved to that point? What happens when you try the button, anything? Does the player respawn anywhere at all or there’s no visual change?
I see you’re enabling player spawner devices and having the button spawn functions attempt to respawn the player. Is there a spawn limit on the Island settings?
When I’m debugging things in my code, I often put a lot of Print("say some message here")
functions in my functions, if statements, and other parts I expect to execute, etc. That can help narrow down where the error is happening, because it lets us see in the output Log screen if we’re reaching those points in the code execution.
For example you can put some here:
ButtonSpawn1A(Agent:agent): void=
Print("Starting function ButtonSpawn1A ---")
set WeightOfPoint1A = PlayerWeightOfThisPoint1A + PlayerWeightOfThisPoint1A
if(WeightOfPoint1A > 0.0):
Print("if(WeightOfPoint1A > 0.0) = true")
if(FortCharacter := Agent.GetFortCharacter[]):
Print("Begin Agent.Respawn")
FortCharacter.Damage(150.0)
Agent.Respawn(vector3{X := 11010.0, Y := -1533.0, Z := 3064.0},IdentityRotation())
I would start with Print functions and see if they all trigger first