SiliconGhetto Engine API
    Preparing search index...

    Function damage

    • Deal damage to an entity, reducing its health.

      Parameters

      • entity: number

        The entity ID

      • amount: number

        Amount of damage to deal

      Returns boolean

      True if the entity died from this damage