Tile - YFirearm - Set Loaded Ammo – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:Get-set loaded ammo.png]]
<!---
*Gets/sets [[Ylands Tile - Number literal|'''number''']] (amount) of loaded ammo in target '''entity'''.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Set Loaded Ammo(Entity, Value) ==
 
[[File:YlandsTile-1069.png]]
 
<pre>static setAmmo(target: YEntity, value: number): void;</pre>
=== Parameters ===
 
==== target ====
 
Target entity (weapon)
 
==== value ====
 
New amount of loaded ammo
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Not in Edu|Not in Edu]]
 
=== Description ===
 
Allows to set amount '''ammo''' for target '''ranged weapon'''.
 


----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.12]]

Latest revision as of 15:26, 24 November 2023