Just going to start a thread here for bugs in the text as they're found so we can keep them all in one place.
P#65596 2019-07-05 12:13 ( Edited 2019-07-09 19:00)


In the section Actors it incorrectly explains the Lua colon syntax
Actor state, attributes, modifiers and inventory functions all take the
actor as the first parameter, and so can be called using Lua's ':' operator:
x,y,z = foo:get_xyz() -- means the same as: x,y,z = get_xyz(foo) |
which should be:
x,y,z = foo:get_xyz() -- means the same as: x,y,z = foo.get_xyz(foo) |
It's a sugar for methods/functions that are properties of tables, not for regular functions not associated with a table.
P#65597 2019-07-05 12:18
[Please log in to post a comment]