StendhalScripting/LuaAPI: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge →entities: add descriptions |
imported>AntumDeluge →entities: add some deprecation notes |
||
| Line 201: | Line 201: | ||
; ''<span style="color:green">entities:setPath</span>(entity, table, loop)'' |
; ''<span style="color:green">entities:setPath</span>(entity, table, loop)'' |
||
: '''''DEPRECATED:''' path can now be set by directly calling the NPC's <code>setPath</code> method'' |
|||
: Helper method for setting an NPC's path. |
: Helper method for setting an NPC's path. |
||
: '''''entity:''''' (<code>RPEntity</code>) Then entity whose path is being set. |
: '''''entity:''''' (<code>RPEntity</code>) Then entity whose path is being set. |
||
| Line 206: | Line 207: | ||
: '''''loop:''''' (<code>boolean</code>) If <code>true</code>, the entity's path should loop. |
: '''''loop:''''' (<code>boolean</code>) If <code>true</code>, the entity's path should loop. |
||
; ''<span style="color:green">entities:setPathAndPosition</span>(entity, table, loop)'' |
; ''<span style="color:green">entities:setPathAndPosition</span>(entity, table, loop)'' <nowiki> |
||
: '''''DEPRECATED:''' path can now be set by directly calling the NPC's <code>setPath</code> method'' |
|||
: Helper function for setting an NPC's path & starting position. |
: Helper function for setting an NPC's path & starting position. |
||
: '''''entity:''''' (<code>RPEntity</code>) Then entity whose path is being set. |
: '''''entity:''''' (<code>RPEntity</code>) Then entity whose path is being set. |
||