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
Need help with scripting music to areas
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Need help with scripting music to areas

Use a collide callback on the area, then execute the music function. All of these are found on the scripts page:
http://wiki.frictionalgames.com/hpl2/amn..._functions Just ctrl/cmd-F to look them up, then read the documentation so you'll know what to input in the parameters.

AddEntityCollideCallback should be in OnStart, or possibly OnEnter depending on what you want.

PlayMusic is run inside the MyFunc function that is made using the collide callback.

(This post was last modified: 04-03-2014, 03:21 PM by Mudbill.)
04-03-2014, 03:19 PM
Find


Messages In This Thread
RE: Need help with scripting music to areas - by Mudbill - 04-03-2014, 03:19 PM



Users browsing this thread: 1 Guest(s)