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
Methods- addModel (name[, model[, texture]])
-
Loads a 3d model. Trigged by OnGameBoot event in ORGMClientEvents.lua
Parameters:
- 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