Template:I BaseActbusyGoal: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Cleanup)  | 
				m (→top:  Substituted IO templates)  | 
				||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{  | {{minititle|AI_ActBusyGoal}}  | ||
{{I|ForceNPCToActBusy|param=string|  | |||
{{  | :Format: <code><targetname> [hint node targetname] [teleport] [nearest] [$<custom activity or sequence>] [max time]</code>  | ||
:Force an NPC to act busy.  | |||
:*The ''targetname'' parameter specifies the name of the NPC(s).  | |||
: Format: <code><targetname> [hint node targetname] [teleport] [nearest] [$<custom activity or sequence>] [max time]</code>  | :*The ''hint node targetname'' parameter specifies the name of the ''Hint'' node. Used to force an NPC to act busy on a specific node. If no ''hint node targetname'' is specified, it'll search for a random one.  | ||
: Force an NPC to act busy.  | :*If the ''teleport'' keyword is specified as a parameter, the NPC will teleport onto the actbusy node instead of navigating to it.  | ||
:The ''targetname'' parameter specifies the name of the NPC(s).  | :*If the ''nearest'' keyword is specified as a parameter, the NPC will choose the nearest valid actbusy node, instead of choosing one randomly from all valid actbusy nodes.  | ||
:The ''hint node targetname'' parameter specifies the name of the ''Hint'' node. Used to force an NPC to act busy on a specific node. If no ''hint node targetname'' is specified, it'll search for a random one.  | :*The ''max time'' parameter specifies the maximum time to actbusy. If no ''max time'' is specified, it'll use the default. Specifying 0 as the ''max time'' will make the NPC(s) act busy until disturbed.  | ||
:If the ''teleport'' keyword is specified as a parameter, the NPC will teleport onto the actbusy node instead of navigating to it.  | :*The ''$customactivityorsequence'' parameter specifies the name of a custom activity, prepended by a "$", that the NPC(s) will preform while navigating to the node, e.g. <code>$ACT_RUN</code> will make the NPC(s) run to the node. Sequence names can be used instead of activities.}}  | ||
:If the ''nearest'' keyword is specified as a parameter, the NPC will choose the nearest valid actbusy node, instead of choosing one randomly from all valid actbusy nodes.  | {{I|ForceThisNPCToActBusy|param=targetname|Force an specified NPC to act busy. If there are multiple NPCs with the same name, only ''one'' will be ordered.}}  | ||
:The ''max time'' parameter specifies the maximum time to actbusy. If no ''max time'' is specified, it'll use the default. Specifying 0 as the ''max time'' will make the NPC(s) act busy until disturbed.  | {{I|ForceThisNPCToLeave|param=targetname|Force an NPC to find an ''NPC exit point'' (<code>HINT_NPC_EXIT_POINT</code> hintnode) and vanish. Supports wildcards.}}  | ||
:The ''$customactivityorsequence'' parameter specifies the name of a custom activity, prepended by a "$", that the NPC(s) will preform while navigating to the node, e.g. <code>$ACT_RUN</code> will make the NPC(s) run to the node. Sequence names can be used instead of activities.  | {{I|SetBusySearchRange|param=float|Alters the '''Search Range for Busy Hints''' keyvalue for all actors.}}<noinclude>  | ||
[[Category:Input Templates|BaseActbusyGoal]]  | |||
}}  | </noinclude>  | ||
{{  | |||
{{  | |||
{{  | |||
Latest revision as of 11:50, 21 April 2025
AI_ActBusyGoal:
- ForceNPCToActBusy <string>
 - Format: 
<targetname> [hint node targetname] [teleport] [nearest] [$<custom activity or sequence>] [max time] - Force an NPC to act busy.
- The targetname parameter specifies the name of the NPC(s).
 - The hint node targetname parameter specifies the name of the Hint node. Used to force an NPC to act busy on a specific node. If no hint node targetname is specified, it'll search for a random one.
 - If the teleport keyword is specified as a parameter, the NPC will teleport onto the actbusy node instead of navigating to it.
 - If the nearest keyword is specified as a parameter, the NPC will choose the nearest valid actbusy node, instead of choosing one randomly from all valid actbusy nodes.
 - The max time parameter specifies the maximum time to actbusy. If no max time is specified, it'll use the default. Specifying 0 as the max time will make the NPC(s) act busy until disturbed.
 - The $customactivityorsequence parameter specifies the name of a custom activity, prepended by a "$", that the NPC(s) will preform while navigating to the node, e.g. 
$ACT_RUNwill make the NPC(s) run to the node. Sequence names can be used instead of activities. 
 
- ForceThisNPCToActBusy <targetname>
 - Force an specified NPC to act busy. If there are multiple NPCs with the same name, only one will be ordered.
 
- ForceThisNPCToLeave <targetname>
 - Force an NPC to find an NPC exit point (
HINT_NPC_EXIT_POINThintnode) and vanish. Supports wildcards. 
- SetBusySearchRange <float>
 - Alters the Search Range for Busy Hints keyvalue for all actors.