CreatureHasModel

From the Fallout3 GECK Wiki
Revision as of 18:36, 7 June 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Returns 1 if the creature's model-list includes the specified .nif file. |name = CreatureHasModel |returnType = hasModel:0/1 |referenc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Returns 1 if the creature's model-list includes the specified .nif file.

Syntax

[help]
(hasModel:0/1) reference.CreatureHasModel modelPath:string baseForm:ref

Example

set bHasModel to RexRef.CreatureHasModel "eyessetvicious.nif"
set bHasModel to CreatureHasModel "eyessetvicious.nif" Rex

Notes

  • The file must appear in the creature's meshes folder.
  • The string must include the ".nif" extension and is case-insensitive.

See Also