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]
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#11
RE: Let a note starting music

SetEntityPlayerInteractCallback("ITEMNAME HERE", "prestige1", true);
04-25-2014, 06:56 PM
Find
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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#13
RE: Let a note starting music

Your block is called prestige1 while your callback tells it to use prestige. Change one of them so they match. Just rename your block to prestige instead of prestige1.

04-25-2014, 08:15 PM
Find
ShipinShen Offline
Junior Member

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

(04-25-2014, 08:15 PM)Mudbill Wrote: Your block is called prestige1 while your callback tells it to use prestige. Change one of them so they match. Just rename your block to prestige instead of prestige1.

Ahh what a careless mistake :p thanks it's working Smile
But i can still add a narration to it, right ?

ShipinShen - YouTube
04-25-2014, 10:39 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#15
RE: Let a note starting music [Solved]

For notes , no.
for journal yes.
sry for short awnser here,, on tab atm.
04-25-2014, 10:55 PM
Find
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#16
RE: Let a note starting music [Solved]

(04-25-2014, 10:55 PM)DnALANGE Wrote: For notes , no.
for journal yes.
sry for short awnser here,, on tab atm.

But mudbill has a tutorial where he adds a narration to a note :o

ShipinShen - YouTube
(This post was last modified: 04-25-2014, 11:11 PM by ShipinShen.)
04-25-2014, 11:11 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#17
RE: Let a note starting music [Solved]

Both notes and diaries can have narration. Just add the [voice filename.ogg] before the text in your lang entry.

04-26-2014, 03:55 AM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#18
RE: Let a note starting music [Solved]

Ohh okay..
Thanks Mud.. didnt know this really..
Never tried it but seen on this forum that sorta it wasnt able.. i Always had the thoughts like.. WHY NOT NOTES??
Clearified Wink
04-26-2014, 11:49 AM
Find




Users browsing this thread: 2 Guest(s)