I’m trying to determine if a player is on the ground, and I found IsOnGround in the Fort_Character Interface. I tried to perform a check, using the following Verse code, with the intent of injuring players that are on the ground. This would be triggered by a timer:
Players:[]player := Self.GetPlayspace().GetPlayers()
for(P : Players):
if (FortChar := P.GetFortCharacter[]):
if (FortChar.IsOnGround = true):
FortChar.Damage(25.0)
This line (if (FortChar.IsOnGround = true) is giving me the following error:
This function parameter expects a value of type tuple(comparable,comparable), but this argument is an incompatible value of type tuple(type{_():void},logic)
Can anyone provide me with a proper example of using IsOnGround to determine if a Fort_Character is on the ground? Thanks!