ScriptHook.EntityHasComponent

From Nomad DB
Revision as of 12:25, 2 August 2020 by Jan (talk | contribs) (Created page with "Checks if the given Entity has a Entity Component. {{Warning|The component name is case-sensitive!}} If you need to get a list of components to a giv...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Checks if the given Entity has a Entity Component.

The component name is case-sensitive!

If you need to get a list of components to a given Entity, use ScriptHook.GetEntityComponents.

Syntax

ScriptHook.EntityHasComponent(name)
  • name: Name of the component (string)
  • Returns: boolean (has component)

Related Pages