- The
object
table accessible from object scripts has been renamed toentity
for consistency - Object scripts receive an argument in
init
which is true when the object is being previewed and false when it is placed in the world - Wire objects can now use
getInboundNodeIds(nodeIndex)
andgetOutboundNodeIds(nodeIndex)
to get a table of entityIds for all objects connected to the specified wire node - Object scripts can now define a function
die()
to be called when the object is broken or destroyed - Added an
entityProxy
wrapper function to make more entity functions available (details here: https://www.irccloud.com/pastebin/ZQBDj4ou) - Added
entity.setDropPool
for monsters to allow changing theirdropPool
parameter from scripts, which can also be set tonil
to disable drops - Added
world.damageTiles
andworld.placeMaterial
for tile manipulation - Added
world.itemDropQuery
andworld.takeItemDrop
- Added
entity.energy
andentity.maxEnergy
to NPCs - Documentation for world/object hooks can now be found in
/assets/scripts/API
Last active
December 31, 2015 16:39
-
-
Save alex-lawson/8014884 to your computer and use it in GitHub Desktop.
Bonus patch notes for modders
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment