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
Script Help Candle trigger
VillainousPotato Offline
Member

Posts: 50
Threads: 13
Joined: Mar 2013
Reputation: 1
#5
RE: Candle trigger

(08-10-2013, 10:55 PM)Damascus Wrote: You'll actually need a general callback, something that's pretty versatile for triggering scripts. Here's an example from my script:

SetEntityCallbackFunc("torch_static01_2", "LightTorch");

void LightTorch(string &in asEntity, string &in OnIgnite)
{
AddTimer("", 0.5f, "SwitchTorch");
}

Make sure your function is labelled as "OnIgnite," as above. For other uses, you can put in OnPickup or Break, but I don't have a full list of functions. Smile
Awesome thanks! It works like a charm after about 100 tries. but i got it! victory is sweet.

08-11-2013, 09:11 AM
Find


Messages In This Thread
Candle trigger - by VillainousPotato - 08-10-2013, 03:04 AM
RE: Candle trigger - by PutraenusAlivius - 08-10-2013, 11:17 AM
RE: Candle trigger - by VillainousPotato - 08-10-2013, 07:40 PM
RE: Candle trigger - by Damascus - 08-10-2013, 10:55 PM
RE: Candle trigger - by VillainousPotato - 08-11-2013, 09:11 AM



Users browsing this thread: 1 Guest(s)