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
Script Help Let a note starting music [Solved]
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#4
RE: Let a note starting music

(04-23-2014, 06:10 PM)Mudbill Wrote: I suggest adding a PickUp callback and run PlayMusic or possibly PlayGuiSound as you pick it up. That could work. You just need to make sure the event is actually executed before the note text appears, or else it will wait until you close it.

Thats a good idea, i tried it with PlayGuiSound and with PlayMusic, but it gives me an error "ERR expectet Data Type" on the red marked lines

Quote:void prestige("NoteHilfe", "OnPickup")
{
PlayGuiSound("Prestige.snt", 1);
}

void OnStart()
{
SetEntityCallbackFunc("prestige", "prestige1");
}

The Callback func of the note in the editor is names as "prestige1" and the note as "NoteHilfe"

ShipinShen - YouTube
04-23-2014, 09:42 PM
Find


Messages In This Thread
RE: Let a note starting music - by DnALANGE - 04-23-2014, 05:59 PM
RE: Let a note starting music - by Mudbill - 04-23-2014, 06:10 PM
RE: Let a note starting music - by ShipinShen - 04-23-2014, 09:42 PM
RE: Let a note starting music - by Mudbill - 04-24-2014, 12:22 AM
RE: Let a note starting music - by ShipinShen - 04-25-2014, 07:59 PM
RE: Let a note starting music - by DnALANGE - 04-24-2014, 10:29 AM
RE: Let a note starting music - by ShipinShen - 04-25-2014, 04:26 PM
RE: Let a note starting music - by Mudbill - 04-24-2014, 10:52 AM
RE: Let a note starting music - by DnALANGE - 04-24-2014, 04:52 PM
RE: Let a note starting music - by Mudbill - 04-24-2014, 05:07 PM
RE: Let a note starting music - by DnALANGE - 04-25-2014, 06:56 PM
RE: Let a note starting music - by Mudbill - 04-25-2014, 08:15 PM
RE: Let a note starting music - by ShipinShen - 04-25-2014, 10:39 PM



Users browsing this thread: 1 Guest(s)