Skip to content

zCCodeMaster

Quick Infos

Type: Virtual Object
Format Name: ZenGin Archive
File Extension: .ZEN
Class Name: zCCodeMaster
Version Identifiers:
— Gothic I: 0
— Gothic II: 0
ZenKit Class: zCCodeMaster Source:
spacerhilfedatei.sph
gothic-library.ru

zCCodeMaster VObjects keep a list of 'slave' VObjects and keep track of events received by them. If the master receives an OnTrigger event from a slave, it remembers that it did. After it has receives an OnTrigger message from all slaves, it emits an OnTrigger event to the triggerTarget. Receiving or sending an OnTrigger event is also referred to as an 'activation' for this purpose.

Properties

orderRelevant

Controls whether the master should keep track of the order it receives messages from its slaves.

  • TRUE — Only send an OnTrigger event to the triggerTarget if the slaves have fired in the exact order they are configured here. Also counts multiple activations.
  • FALSE — Send an OnTrigger event to the triggerTarget after all slaves have fired at least once, regardless of order.

firstFalseIsFailure

Controls when the slave activation sequence is considered to be incorrect. After the sequence is marked as incorrect an OnTrigger event is sent to triggerTargetFailure.

  • TRUE — The sequence is considered to be incorrect as soon as one slave is activated out-of-order.
  • FALSE — The sequence is considered to be incorrect only after all slaves have been activated at least once and they were activated out-of-order.

Warning

Only relevant if orderRelevant is set to TRUE.

triggerTargetFailure

The name of the VObject to emit an OnTrigger event to if the activation sequence fails. This is controlled by firstFalseIsFailure.

Warning

Only relevant if orderRelevant is set to TRUE.

untriggerCancels

Controls whether slaves can emit OnUntrigger events to the master VObject to mark themselves as deactivated.

  • TRUE — When the master receives an OnUntrigger event from the slave, it marks it as not having been activated.
  • FALSE — The master ignore OnUntrigger events from its slaves.

Warning

Only relevant if orderRelevant is set to FALSE.

slaveVobName

The name of a slave VObject.

numSlavesTriggered

Unknown.

Warning

This property is only available in saved games.