Skip to main content

scripted_schedule

scripted_schedule icon
Point entityPorted from Featureful

A scripted_schedule tells monsters what to do about a spot: move away from it, take cover from it, investigate it, turn to it or go to it.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Affected monsterentity

Names the monsters, as a name or !activator.

Suggested scheduleschedule

Sets what the monsters are told to do about the spot.

  • Clear suggested schedule (0) - It stops an order that the monsters are running
  • Move away from spot (1) - The monster goes to an info_node away from the spot. If it finds none, it goes to a point straight away from the spot
  • Cover or retreat from spot (2) - The monster first looks for an info_node that is hidden from the spot. If it finds none, it does as with "Move away from spot"
  • Investigate spot (3) - The monster looks at the spot, walks there and waits
  • Turn to spot (4) - The monster turns to the spot
  • Move to spot (5) - The monster goes to the spot
Default Move away from spot (1)
Min distancemindist

With "Move away from spot" and "Cover or retreat from spot", sets the shortest distance the monster goes.

Max distancemaxdist

With "Move away from spot" and "Cover or retreat from spot", sets the longest distance the monster goes.

If you leave this key empty, it is 784.

Spot entityspot_entity

Names the entity that is the spot.

If you leave this key empty, the spot is the monster itself for "Move away from spot" and "Cover or retreat from spot", and this entity for the others.

Move preferencemove_preference

Sets whether the monster walks or runs. A monster without a run animation, such as a Zombie, the Cyborg or the Cyber Minotaur, always walks.

  • Auto (0) - It runs for "Move away from spot" and "Cover or retreat from spot", and walks for the others
  • Walk (1)
  • Run (2)
Default Auto (0)
Spot preferencespot_preference

The game ignores this key. It always takes the spot at the place where it is when the entity fires.

  • Auto (0)
  • Position (taken once) (1)
  • Entity (2)
Default Auto (0)

Notes​

  • A monster that is busy gets the order when it is free again. A monster is busy when it is in a script, fighting or afraid
  • A newer order or a "Clear suggested schedule" replaces an order that is still waiting
  • Damage or a new enemy stops a running order. A monster that follows a player keeps following after the order

See also​

Changes since 1.38​

  • scripted_schedule is new