Skip to content

MOB – interactive object functions

zDExt_Mob_SetFocusName

Sets the focus name of specified oCMOB in the game world.

func void zDExt_Mob_SetFocusName(var string mobName, var string focusName) {};
  • mobName – name of the mob (interactive vob) in the game world
  • focusName
Example usage
zDExt_Mob_SetFocusName("CHEST_LOBART", "MOBNAME_CHAIR");

zDExt_Mob_GetFocusName

Gets focus name of specified oCMOB in the game world.

func string zDExt_Mob_GetFocusName(var string mobName) {};
  • mobName – name of the mob (interactive vob) in the game world
  • return – focus name of oCMOB
Example usage
var string focusName;
focusName = zDExt_Mob_GetFocusName("CHEST_LOBART");

if (Hlp_StrCmp(focusName, MOBNAME_CHEST))
{
    //...
};

zDExt_Mob_GetScemeName

Gets the sceme name (interaction scheme) of a specified oCMobInter.

func string zDExt_Mob_GetScemeName(var string mobName) {};
  • mobName – name of the mob (interactive vob) in the game world
  • return – sceme name. If the mob is not found or is not an interactive object, it's an empty string
Example usage
var string sceme;
sceme = zDExt_Mob_GetScemeName("LEVER_GATE_01");