Template:Weapon functions: Difference between revisions
Jump to navigation
Jump to search
(Undo revision 81633) Tag: Undo |
Fernando187 (talk | contribs) m (Fix function in wrong category (wiki cleaning)) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
<ul> | <ul> | ||
{{#if: {{{1|}}} | {{#if: {{{1|}}} | ||
| {{#ifeq: {{lc:{{{1}}}}} | client | |||
| | |||
<!-- CLIENT functions --> | |||
{{New items|3.0161|1.6.0| | |||
<li>[[setWeaponRenderEnabled]]</li> | |||
<li>[[isWeaponRenderEnabled]]</li> | |||
|22880}} | |||
| {{#ifeq: {{lc:{{{1}}}}} | server | | {{#ifeq: {{lc:{{{1}}}}} | server | ||
| | | | ||
| Line 8: | Line 15: | ||
<li>[[takeAllWeapons]]</li> | <li>[[takeAllWeapons]]</li> | ||
<li>[[takeWeapon]]</li> | <li>[[takeWeapon]]</li> | ||
}} | |||
}} | }} | ||
</br> | </br> | ||
| Line 15: | Line 23: | ||
<!-- SHARED functions--> | <!-- SHARED functions--> | ||
<li>[[getWeaponProperty]]</li> | <li>[[getWeaponProperty]]</li> | ||
<li>[[getOriginalWeaponProperty]]</li> | <li>[[getOriginalWeaponProperty]]</li> | ||
<li>[[getSlotFromWeapon]]</li> | <li>[[getSlotFromWeapon]]</li> | ||
Latest revision as of 14:49, 10 November 2025
The template contains a list of functions. It accepts 1 parameter, which specifies whether the functions should be displayed for server or client. Regardless of the parameter, a list of shared functions will also be displayed
Example: {{Camera functions|client}} will display a list of client-side functions, and below it a list of shared functions, similarly for the server.