Skip to content

oCMobInter

Quick Infos

Type: Virtual Object
Format Name: ZenGin Archive
File Extension: .ZEN
Class Name: oCMobInter
Version Identifiers:
— Gothic I: 35585
— Gothic II: 35585
ZenKit Class: VInteractiveObject
Sources:
spacerhilfedatei.sph
gothic-library.ru

Interactive objects can be interacted with by NPCs and the player. Every time the object is interacted with, an OnTrigger event is sent to the triggerTarget object.

Properties

stateNum

Unknown.

triggerTarget

The name of the VObject(s) to send an OnTrigger event to when this object is interacted with. Controlled by the rewind property.

useWithItem

The name of the item which the player or NPC must have in their inventory in order to interact with the object. Corresponds to the name of the item instance in the scripts.

conditionFunc

The name of a script function which, when called, determines whether the object can be interacted with. The script function returns an int which is either 0, if the object should be disabled and 1 if it should be enabled.

onStateFunc

The name of a script function to be called when the object is being used.

rewind

Determines whether an OnTrigger event should be sent every time the object is interacted with or only the first time.
TRUE — Send OnTrigger events multiple times. FALSE — Only send the event once.