Difference between revisions of "TriggerPerception"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(fix missing parameter, remove tag)
m
 
Line 9: Line 9:
 
|param2desc=The creature that is being seen
 
|param2desc=The creature that is being seen
 
|returntype=int
 
|returntype=int
|returndesc=
+
|returndesc=TRUE if the creature is percieved, FALSE otherwise
 
|sourcefile=script.ldf
 
|sourcefile=script.ldf
 
|sourcemodule=
 
|sourcemodule=

Latest revision as of 21:22, 2 March 2010

Makes a creature be perceived as long as its within the outer perception radius

int TriggerPerception(
object oPerceivingCreature,
object oPerceivedCreature
);
Parameters:
oPerceivingCreature
The creature that will see another creature
oPerceivedCreature
The creature that is being seen
Returns:

TRUE if the creature is percieved, FALSE otherwise

Source:

script.ldf

Description

This command goes beyond the normal AI perception ring, but will return false if the creature to be perceived is dead, the same as the perceiving creature or beyond the visual radius (about 60m).