Page 1 of 1

Editor documentation questions

Posted: Fri Sep 14, 2012 6:46 pm
by ikki
None of the existing topics concentrated on the editor documentation, so I made a new topic.

The script reference says this about altars:
Altars share the same scripting API with Alcoves. The only difference is that an alcove is a wall item while an altar is placed in the middle of a cell.
Yet trying to call setActivateAlways(true) on an altar causes an error ("attempt to call a nil value"). In the editor GUI the setting is present on alcove, but not on altar.

The second line in this script will cause the error:

Code: Select all

testAlcove:setActivateAlways(true)
testAltar:setActivateAlways(true)
Is this a factual error in the documentation, or should altar support setActiveAlways()?

Re: Editor documentation questions

Posted: Fri Sep 14, 2012 7:38 pm
by antti
ikki wrote:Is this a factual error in the documentation, or should altar support setActiveAlways()?
Yes, the altars should support the same functionality as alcoves do. The activate always property is a relatively new feature so this must have passed under our radars. Thanks for pointing it out. :)