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
#12
RE: Let a note starting music

(04-24-2014, 12:22 AM)Mudbill Wrote: You do not modify the parameters in a constructor. Leave those as they are and only modify the calls to the different functions within your block.

I think the parameters you need here are (string &in asEntity, string &in Type).

Also change the callback in OnStart to include "prestige" in both, rather than "prestige1" in the second.

So i tried this
Quote:void prestige1(string &in asEntity, string &in Type)
{
PlayGuiSound("Prestige.ogg", 1);
}

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

The error disappeared but nothing happens when i'm picking up the note.. the script should know that the note is meaned, because the callbackfunc in the editor is named as "prestige"

ShipinShen - YouTube
04-25-2014, 07:59 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)