TrackMonsters() public static method

Tracks the monsters in the specified range around the player. If the skill check is failed then false information is generated for the player.
public static TrackMonsters ( GameObject origin, float Range, bool SkillCheckPassed ) : void
origin GameObject Gameobject at the centre of where to check from
Range float Range to include
SkillCheckPassed bool If set to true skill check passed.
return void
Exemplo n.º 1
0
    /// <summary>
    /// Tries the tracking skill to detect nearby monsters
    /// </summary>
    void TryTracking()
    {
        bool SkillSucess = UWCharacter.Instance.PlayerSkills.TrySkill(Skills.SkillTrack, Skills.DiceRoll(0, 30));
        int  skillLevel  = UWCharacter.Instance.PlayerSkills.GetSkill(Skills.SkillTrack);

        Debug.Log("Track test = " + SkillSucess);
        Skills.TrackMonsters(this.gameObject, (float)skillLevel / 3, SkillSucess);
    }