Tile - YCannon - Fire – 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}}}}")
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Fire_entity.png]]
<!---
*Allows to '''fire immediately''' (without ignition timer)  target cannon.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*To activate ignition timer, use [[Ylands Tile - Ignite-Defuse explosive|'''Ignite''']] instruction.
-->
*Works also for catapults, but it will fire the catapult with 0 power.
== Fire(Entity) ==


[[File:YlandsTile-138.png]]


[[Image:Ylands_Tile_-_Fire_catapult.png]]
<pre>static fire(target: YEntity): void;</pre>
*Allows to fire '''catapult''' with desired '''power'''.
=== Parameters ===
*Power scales in range 0-5.


===Notes===
==== target ====
*To load a cannon it is possible to use [[Ylands Tile - Spawn entity prototype|'''Spawn Entity''']] or [[Ylands Tile - Put entity to container|'''Put To Container''']] instructions
 
Target entity (cannon)
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Allows to immediately '''fire''' (without ignition timer) selected cannon.




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


[[Category: Ylands 0.10]]
[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 14:23, 24 November 2023