Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with script involving making trees appear/disappear
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: Need help with script involving making trees appear/disappear

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. Sad

I can help you with the message though. Smile
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.
(This post was last modified: 09-03-2012, 06:02 PM by Statyk.)
09-03-2012, 05:58 PM
Find


Messages In This Thread
RE: Need help with script involving making trees appear/disappear - by Statyk - 09-03-2012, 05:58 PM



Users browsing this thread: 1 Guest(s)