StendhalScripting/LuaAPI: Difference between revisions

Content deleted Content added
imported>AntumDeluge
entities: add descriptions
imported>AntumDeluge
entities: add some deprecation notes
Line 201:
 
; ''<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.
: '''''entity:''''' (<code>RPEntity</code>) Then entity whose path is being set.
Line 206 ⟶ 207:
: '''''loop:''''' (<code>boolean</code>) If <code>true</code>, the entity's path should 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.
: '''''entity:''''' (<code>RPEntity</code>) Then entity whose path is being set.