Molang

YSM Molang reference: TaCZ guns

Every Molang function and variable you can use in Yes Steve Model animations and controllers, with what it returns and the YSM version that added it. New to Molang? Start with Molang in YSM.

MolangWhat it doesSince
ctrl.tac_hold_gunWhether the player is holding a TaCZ gun in the main handReturns boolean2.3.0
ctrl.tac_gun_typeType of gun currently held by the player (e.g., rifle, pistol)Returns stringReturns empty string if not holding a gun2.3.0
ctrl.tac_gun_idID of the gun currently held by the playerReturns stringReturns empty string if not holding a gun2.3.0
ctrl.tac_is_fireWhether the player is firingReturns boolean2.3.0
ctrl.tac_is_aimWhether the player is aimingReturns boolean2.3.0
ctrl.tac_is_reloadWhether the player is reloadingReturns boolean2.3.0
ctrl.tac_is_meleeWhether the player is performing a melee attack (bayonet)Returns boolean2.3.0
ctrl.tac_is_drawWhether the player is drawing/switching gunsReturns boolean2.3.0
ctrl.tac_fire_modeFirearm firing modeReturns a string, usually uppercase AUTO, SEMI, or BURST2.6.0