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}}}}")
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Fire_entity.png]]
<!---
*Allows to immediately (without ignition timer) '''fire''' target '''cannon'''.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*To ignite cannon 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 ===
*Maximum catapult power is 5.


==== target ====


===Notes===
Target entity (cannon)
*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
 
=== 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: Instructions]]

Latest revision as of 15:23, 24 November 2023