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
Touch an entity/item and something is triggered?
Ongka Offline
Member

Posts: 225
Threads: 3
Joined: Nov 2010
Reputation: 20
#3
RE: Touch an entity/item and something is triggered?

void OnStart()
{
SetEntityCallbackFunc("ENTER_TINDERBOX_NAME", "FUNCTION_NAME");
}

void FUNCTION_NAME(string &in asEntity, string &in type)
{
PlaySoundAtEntity("growl", "notice.snt", "Player", 0, false);
GiveSanityDamage(7.0f, true);
}
This should do the job.
Change the names how you'd like them.

[Image: 18694.png]
(This post was last modified: 07-16-2012, 02:26 PM by Ongka.)
07-16-2012, 02:26 PM
Find


Messages In This Thread
RE: Touch an entity/item and something is triggered? - by Ongka - 07-16-2012, 02:26 PM



Users browsing this thread: 2 Guest(s)