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
iLucian Offline
Junior Member

Posts: 22
Threads: 8
Joined: Jun 2013
Reputation: 0
#5
RE: Help - Play Music when I touch an object

(07-10-2013, 07:15 PM)The chaser Wrote: 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

I dont know why but this isnt working for me Sad

-EDIT-
ok so i changed the SetEntityCallbackFunc to SetEntityPlayerInteractCallback and entered the Syntax but for some reason the music wont stop looping! :O Help plz!!

Wherever there is Light, Darkness has already gotten there first.
(This post was last modified: 07-11-2013, 04:50 AM by iLucian.)
07-11-2013, 12:16 AM
Find


Messages In This Thread
RE: Help - Play Music when I touch an object - by iLucian - 07-11-2013, 12:16 AM



Users browsing this thread: 1 Guest(s)