Skip to content

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

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 β€” Send OnTrigger events multiple times
  • FALSE β€” Only send the event once