(12-03-2010, 05:12 PM)Nitt Wrote: should I post a new thread for each question? I'm not sure how it works here
I think it might be best to keep all related questions in one topic.
Also to make one topic with a lot of questions if you've got a lot at the same time.
Otherwise I think making more topics is the best idea.
Anyway I don't think there are any rules about it.
(12-03-2010, 05:12 PM)Nitt Wrote: is there a way to script the lighting of a torch/candle to cause an event? I'm thinking Zelda terms, where lighting all four torches in a room will open the door, you know?
There was a custom story that did that.
I think it is called "Cursed summoning part 1" or something like that.
The functions to use are probably
/**
* Callback syntax: MyFunc(string &in entity, string &in type). Type depends on entity type and includes: "OnPickup", "Break", "OnIgnite", etc
*/
void SetEntityCallbackFunc(string& asName, string& asCallback);
/**
* A callback called when ever the connection state changes (button being switched on). Syntax: void Func(string &in EntityName, int alState). alState: -1=off, 0=between 1=on
*/
void SetEntityConnectionStateChangeCallback(string& asName, string& asCallback);
@Devs:
Wouldn't it be good to have a syntax highlighter plugin on the forums.
So you can post highlighted code?