Frictional Games Forum (read-only)

Full Version: Running a Script When Player Lights Candle On
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

I need to know how to run a script once the player lights up ("tinderboxes" the lamp :p) a candle. So let's say if the player lit up a candle in a room, and once he does that, it unlocks a secret passage (just an example of what I mean).

Please and thank you Smile
void SetEntityCallbackFunc(string& asName, string& asCallback);


Calls a function when the player interacts with a certain entity.
Callback syntax: void MyFunc(string &in asEntity, string &in type)
Type depends on entity type and includes: “OnPickup”, “Break”, “OnIgnite”, etc
(05-15-2012, 12:38 AM)FragdaddyXXL Wrote: [ -> ]void SetEntityCallbackFunc(string& asName, string& asCallback);


Calls a function when the player interacts with a certain entity.
Callback syntax: void MyFunc(string &in asEntity, string &in type)
Type depends on entity type and includes: “OnPickup”, “Break”, “OnIgnite”, etc
Ahhhh I thought it was that function! I must of missed the "OnIgnite" part. Thank you very much sir Smile