String

A special object for checking for text in different objects.

Check out Name and VoicePrefix for possible String object checks.

Example


// Checking for an NPC's name (this is set in Hammer)
IfAttr "Name:self == String:npc_ninja2 TargetEntByName npc_ninja1"
// or
IfAttr "ea_name == String:npc_ninja2 TargetEntByName npc_ninja1"

// Checking for NPC's voice prefix
IfAttr "VoicePrefix:self == String:PF Say WF_SCREAM,2"