Right....so I can get the Wounded message to appear with this code...but only if Im downed, and then suicide.
Im trying to determine if player Is downed / on the ground screaming, and then beable to programatically pick them back up. Any suggestions?Code:void OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info) { if(entity != null) { BasePlayer player = (BasePlayer) entity.ToPlayer(); if (player != null) { if(player.IsWounded() || player.HasPlayerFlag(BasePlayer.PlayerFlags.Wounded)) Plugin.Puts("Wounded! "); } } }
Solved Detecting when player is wounded?
Discussion in 'Rust Development' started by cibal, Aug 15, 2015.