Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help - Play Music when I touch an object
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Help - Play Music when I touch an object

void OnStart()
{
SetEntityCallbackFunc("item", "OnPickup");
}

void OnPickup(string &in asEntity, string &in type)
{
PlayMusic("music.ogg", false, 1, 1, 1, false);
}

Source script from here:

http://wiki.frictionalgames.com/hpl2/tut...n_entities

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-10-2013, 07:15 PM
Find


Messages In This Thread
RE: Help - Play Music when I touch an object - by The chaser - 07-10-2013, 07:15 PM



Users browsing this thread: 1 Guest(s)