Garry's Mod Wiki

Revision Difference

Entity:Weapon_TranslateActivity#562820

<function name="Weapon_TranslateActivity" parent="Entity" type="classfunc"> <description> Calls and returns <page>WEAPON:TranslateActivity</page> on the weapon the entity ( player or NPC ) carries. Despite existing on client, it doesn't actually do anything on client. </description> <realm>Shared</realm> <args> <arg name="act" type="number">The activity to translate</arg> <arg name="act" type="number">The NPC activity to translate</arg> </args> <rets> <ret name="" type="number">The translated activity</ret>⤶ <ret name="" type="number">The translated activity. Defaults to `act` input when a translation doesn't exist.</ret>⤶ </rets> </function>