User Tools

Site Tools


npc_behavior

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
npc_behavior [2022/12/26 00:01] justinnpc_behavior [2022/12/26 00:08] justin
Line 57: Line 57:
 entity["some_npc"].behavior["move_interval"] = 1; entity["some_npc"].behavior["move_interval"] = 1;
 </code> </code>
 +Changes the movement interval so the character moves every 1 second.
 <code bauxite> <code bauxite>
 entity["some_npc"].behavior["attackable_in_realtime"] = true; entity["some_npc"].behavior["attackable_in_realtime"] = true;
 </code> </code>
 +Changes the character to be attackable in real-time.
 +<code bauxite>
 +entity["some_npc"].behavior = "Other Behavior";
 +</code>
 +Changes the character's behavior to the "Other Behavior" preset.
  
 ~~NOTOC~~ ~~NOTOC~~
npc_behavior.txt · Last modified: 2023/05/06 21:14 by justin