StendhalScripting/LuaAPI: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge →entities: add some deprecation notes |
imported>AntumDeluge →entities: entities:summonCreature |
||
| Line 226: | Line 226: | ||
: '''''seller:''''' (<code>boolean</code>) <code>true</code>, if this sign is for items sold by an NPC (defaults to <code>true</code> if <code>null</code>). |
: '''''seller:''''' (<code>boolean</code>) <code>true</code>, if this sign is for items sold by an NPC (defaults to <code>true</code> if <code>null</code>). |
||
: ''returns:'' New <code>ShopSign</code> instance. |
: ''returns:'' New <code>ShopSign</code> instance. |
||
; ''<span style="color:green;">entities:summonCreature</span>(table)'' |
|||
: Summons a creature into the area. |
|||
: '''''table:''''' Key-value table containing parameters for summoning creature. |
|||
:; ''keys:'' |
|||
:: ''<span style="color:blue;">name:</span>'' (<code>string</code>) Name of creature to be summoned. |
|||
:: ''<span style="color:blue;">zone:</span>'' (<code>string</code>) Name of zone where creature should be summoned. |
|||
:: ''<span style="color:blue;">x:</span>'' (<code>int</code>) Horizontal position of summon location. |
|||
:: ''<span style="color:blue;">y:</span>'' (<code>int</code>) Vertical position of summon location. |
|||
:: ''<span style="color:blue;">summoner:</span>'' (<code>string</code>) (optional) Name of entity doing the summoning (used for logging game events). |
|||
:: ''<span style="color:blue;">raid:</span>'' (<code>bool</code>) (optional) Whether or not the creature should be a <code>RaidCreature</code> instance (default: true). |
|||
== quests == |
== quests == |
||