Debriefing > Bug Reports & Fixes
[BUG] 4.2.3: GEUtil.Trace() Can't Ignore A Bot Unless It's Told To DetectPlayers
(1/1)
Joe:
Hi,
I discovered this yesterday when I was working on the new DAD mode version. This won't be a problem for this version.
So this function's GEUtil.Trace() call has to use the "GEUtil.TraceOpt.PLAYER" parameter even though this trace should only be searching for the ground beneath a player:
--- Code: ---
#maxSeperationDistanceBetweenGroundAndGroundedPlayer = 8.04
def isPlayerTouchingGround(self,player):
playersLocation = player.GetAbsOrigin()
endV = GEUtil.VectorMA(playersLocation,GEUtil.Vector(0,0,-1),self.maxSeperationDistanceBetweenGroundAndGroundedPlayer)
return GEUtil.Trace(playersLocation,endV,GEUtil.TraceOpt.WORLD | GEUtil.TraceOpt.PLAYER,player)
--- End code ---
When GEUtil.Trace() fails to ignore a bot it returns nothing.
Navigation
[0] Message Index
Go to full version