Skip to content

oCMOB

Quick Infos

Class Name: oCMOB
Version Identifiers:
— Gothic I: 47105
— Gothic II: 47105
Sources:
spacerhilfedatei.sph
gothic-library.ru
zk.gothickit.dev

A VObject which can optionally be moved and/or carried.

Class members

Class member overview

focusName

The name displayed when the player focuses on the object.

The name is defined in the scripts as:

const string MOBNAME_<focusName> = "<Displayed Name>";

Example

If you set focusName to CHEST, you should also define:

const string MOBNAME_CHEST = "Chest";

hitpoints

The number of hitpoints of the object.

damage

The damage dealt by the object when being used.

moveable

Whether the object can be moved by the player.

Accepted values:

  • TRUE — The object can be moved
  • FALSE — The object can not be moved

takeable

Whether the object can be carried by the player.

Accepted values:

  • TRUE — The object can be carried
  • FALSE — The object can not be carried

focusOverride

Unknown.

soundMaterial

The sound to play when the object is hit.

Accepted values:

  • WOOD — Wood.
  • STONE — Stone.
  • METAL — Metal.
  • LEATHER — Leather.
  • CLAY — Clay.
  • GLAS — Glass.

visualDestroyed

The name of the visual to use when the object is destroyed. Behaves like zCVob.visual.

owner

The name of the script instance of the NPC who is the owner of this object.

ownerGuild

The name of the guild this object belongs to. This name corresponds to the script constant for each guild (i.e. GIL_BAU), found in Constants.d.

isDestroyed

Unknown.