iLucian
Junior Member
Posts: 22
Threads: 8
Joined: Jun 2013
Reputation:
0
|
RE: Help - Play Music when I touch an object
(07-11-2013, 12:47 AM)WIWWM Wrote: (07-11-2013, 12:16 AM)iLucian Wrote: (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 Sad](https://www.frictionalgames.com/forum/images/smilies/sad.gif)
You have to have the item in your map named "item" (no quotations)
Do you know the basics of coding?
-_- yes, instead of item i put in the name of the item. Instead of changing the name of the item to "item" i just put in the name of the item already.
Wherever there is Light, Darkness has already gotten there first.
|
|
07-11-2013, 04:06 AM |
|