as for
void garden_gate_locked(string &in Entity)
do
void garden_gate_locked(string &in asEntity)
Also make sure the .lang file matches the entry and category.
(09-03-2012, 05:58 PM)lllDash Wrote: Unfortunately static objects can't be disabled through the use of scripting, only entities have that feature (well, most of them) and trees are categorized as static objects. There is a way to convert an object to an entity and that could possibly be done using a model editor that is compatible with Amnesia, but I don't know how.
But people have done it before. Sorry.
I can help you with the message though.
SetMessage("Messages", "locked", 0);
So far everything looks fine, just change the 0 to 5 or depending on how many seconds you want the message to display for. And as for: void garden_gate_locked(string &in Entity), try (string &in item) instead.
Setting it to 0 won't make it not work. Setting it to 0 will allow the game to calculate the message time depending on the size of the message, so that's fine.
And you gave the wrong syntax for that function.