Module ORGM.Client

Various Client Fuctions

Info:

  • Copyright: 2018 File: client/1LoadOrder/ORGMClient.lua
  • Release: v3.09
  • Author: Fenris_Wolf

Functions

addModel (name[, model[, texture]]) Loads a 3d model.
loadModels () Loads all 3d models.
getFirearmNeedsUpdate (player, item)
unequipItemNow (player, item) Instantly unequip the item if it’s in the player’s primary hand, skipping timed actions.


Functions

addModel (name[, model[, texture]])
Loads a 3d model. Trigged by OnGameBoot event in ORGMClientEvents.lua

Parameters:

  • name string the name alias for the model
  • model string the file name. defaults to the name argument if nil. (optional)
  • texture string the texture file name. defaults to the name argument if nil. (optional)
loadModels ()
Loads all 3d models. Trigged by OnGameBoot Event in client/ORGMClientEventHooks.lua
getFirearmNeedsUpdate (player, item)
Called from OnEquipPrimary and OnGameStart in ORGMClientEvents.lua

Parameters:

  • player IsoPlayer
  • item HandWeapon
unequipItemNow (player, item)
Instantly unequip the item if it’s in the player’s primary hand, skipping timed actions.

Used by Client.getFirearmNeedsUpdate() above when upgrading weapons to new ORGM versions.

Parameters:

  • player IsoPlayer
  • item HandWeapon
generated by LDoc 1.4.3 Last updated 2018-10-07 13:48:49