Thing_SetGoal

From ZDoom Wiki
Jump to navigation Jump to search

229:Thing_SetGoal (tid, goal, delay, dontchasetarget)


  • tid: Thing ID of monster to send to a patrol point
  • goal: Thing ID of the destination patrol point
  • delay: Seconds before the monster starts moving toward the patrol point
  • dontchasetarget: If non-zero, even walk towards the goal if the monster has a valid target. It will still attack, though.

This special causes a monster to start following a path beginning with the specified patrol points. If tid is 0, Thing_SetGoal can be used as a monster's special to automatically start it walking toward a goal when it is spawned.

Examples

External links