Skip to content

Monster

Vicious Squid edited this page Jun 11, 2026 · 17 revisions
image

A hostile NPC that can see and hear

Example maps: MonsterTest.json , Simple_map_test_extended.json and spawn_test.json


  • Awake - Monster is active at game start
  • Damage - Damage dealt to player per attack
  • health - Maximum health
  • Monster Id
  • Monster Type - human or flying
  • Variant - Skin variation
  • Sprite Height
  • Sprite Width

AI

  • Range - Range of monster senses (sight and hearing)
  • Can hear gunfire - Will investigate gunshots within range
  • Team - Monsters on different teams are enemies and will fight
  • Patrol - Monster follows a path whilst remaining alert

Behaviour Flags

  • Trigger - Monster remains asleep until triggered
  • Wake when sees player (Default behaviour)
  • Dead
  • Non-hostile

Note: If a monster is killed in Play Mode, the dead flag will be True when returning to editor mode


Inputs

Input Description
Activate Activate the monster
Deactivate Deactivate the monster
SetTarget Set the target for the monster [string]
SetState Set the monster state [string]
Kill Kill the monster
Hide Hide the monster
Show Show the monster
ToggleVisibility Toggle visibility

Outputs

Output Description
OnDeath Fired when the monster dies
OnSeePlayer Fired when the monster sees the player
OnLosePlayer Fired when the monster loses sight of the player

see also: Monster-related console commands

Clone this wiki locally