oCMobInter
Quick Infos
Class Name: oCMobInter
 Version Identifiers:
 — Gothic I: 35585
 — Gothic II: 35585
 Sources:
 — spacerhilfedatei.sph
 — gothic-library.ru
 — zk.gothickit.dev
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.
Class members
- zCVob
 - oCVob
 - oCMOB
 - oCMobInter
- stateNum = 0
 - triggerTarget = ""
 - useWithItem = ""
 - conditionFunc = ""
 - onStateFunc = ""
 - rewind = FALSE
 
 
- zCVob
 - oCVob
 - oCMOB
 - oCMobInter
- stateNum = 0
 - triggerTarget = ""
 - useWithItem = ""
 - conditionFunc = ""
 - onStateFunc = ""
 - rewind = FALSE
 
 
- zCVob
 - oCVob
 - oCMOB
 - oCMobInter
- stateNum = 0
 - triggerTarget = ""
 - useWithItem = ""
 - conditionFunc = ""
 - onStateFunc = ""
 - rewind = FALSE
 
 
- zCVob
 - oCVob
 - oCMOB
 - oCMobInter
- stateNum = 0
 - triggerTarget = ""
 - useWithItem = ""
 - conditionFunc = ""
 - onStateFunc = ""
 - rewind = FALSE
 
 
Class member overview
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.
Accepted values:
TRUE— SendOnTriggerevents multiple timesFALSE— Only send the event once