Hello. I’ve been trying to find a hook that is called upon a player getting hurt, but will work clientside. Does one exist? If so, is it possible to create one?
function GM:PlayerHurt(ply) if ply:IsBot() then ply:ConCommand( "+forward" ) end end
If you’re wondering why I’m trying to call a hook that is called if a player is hurt clientside, then here.(I know GM:PlayerHurt won’t work)
Or would this work?
if ply:IsBot() and ply:Health() < 100 then ply:ConCommand( "+forward" ) end