01-21-2012, 11:44 AM
hey guys, i was wondering how to call a check on weather 2 lamps have been lit or not.
E.g. Player lights 2 lamps, calls an easter egg sound.
I have a feeling it has something to do with GetPropIsInteractedWith(string& asName);, but i wouldn't know how to call that...
In other words, what would a callback be when a player uses a tinderbox?
Can i get a hand?
________________________
Edit, Nevermind, just figured it out|| SetEntityCallbackFunc(string& asName, string& asCallback);
void MyFunc(string &in asEntity, string &in OnIgnite)
E.g. Player lights 2 lamps, calls an easter egg sound.
I have a feeling it has something to do with GetPropIsInteractedWith(string& asName);, but i wouldn't know how to call that...
In other words, what would a callback be when a player uses a tinderbox?
Can i get a hand?
________________________
Edit, Nevermind, just figured it out|| SetEntityCallbackFunc(string& asName, string& asCallback);
void MyFunc(string &in asEntity, string &in OnIgnite)