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 script
afroduckie Offline
Junior Member

Posts: 35
Threads: 12
Joined: Jan 2013
Reputation: 0
#11
RE: Need help with script

(01-31-2013, 01:26 AM)i3670 Wrote: Under the "Entity" tab when you click on the note in the leveleditor there is box named PlayerInteractCallback. Type in the name of a callback, can be anything.

Then go to your script and type in:

void NAMEOFCALLBACK(string &in asEntity)
{
AddEffectVoice("voice01", "", "Voice", "invoice", false, "intro_note", 0, 0);
}

It kept coming to a FATAL ERROR screen. ERR @ (9, 16)
9 16 is the (string& asEntity) part. It said EXPECTED DATA TYPE.
I filled it in with the entity name ("intro_note")
01-31-2013, 03:14 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#12
RE: Need help with script

You're not supposed to put "intro_note" in the parameters.

(string &in asEntity)

this must stay what it is right now, because right now it tells the game that if you interact with something that calls the name of the function, then it will trigger. Anything else (Collide, checkpoint, etc.) will not work.

Trying is the first step to success.
(This post was last modified: 01-31-2013, 06:53 AM by FlawlessHappiness.)
01-31-2013, 06:53 AM
Find
afroduckie Offline
Junior Member

Posts: 35
Threads: 12
Joined: Jan 2013
Reputation: 0
#13
RE: Need help with script

(01-31-2013, 06:53 AM)BeeKayK Wrote: You're not supposed to put "intro_note" in the parameters.

(string &in asEntity)

this must stay what it is right now, because right now it tells the game that if you interact with something that calls the name of the function, then it will trigger. Anything else (Collide, checkpoint, etc.) will not work.

Thanks
It worked Smile
(This post was last modified: 01-31-2013, 11:02 PM by afroduckie.)
01-31-2013, 11:00 PM
Find




Users browsing this thread: 2 Guest(s)