ModelHasBlock

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns whether the 3D model of the specified object (which may be either a base form, or a reference) has a block with a name matching (case-sensitive) the specified formatted string.

This includes any NiNodes that were inserted to the object using InsertNode.

Syntax

[help]
(hasBlock:0/1) ModelHasBlock object:form blockName:formattedString formatVars(up to 20)

Example

set bHasBlock to ModelHasBlock PlayerRef "ProjectileNode"
set bHasBlock to ModelHasBlock WeapNVServiceRifle "##CockingMech" 

See Also