SiliconGhetto Engine API
    Preparing search index...

    Function setHealth

    • Set up a health component on an entity with a maximum HP value.

      Parameters

      • entity: number

        The entity ID

      • max: number

        Maximum (and initial) health points

      Returns void

      sg.setHealth(player, 100);