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 Almost done
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#1
Almost done

Hi guys.

Im almost done with my first custom story, i only have three things that puts me to stop.

First. i have two script that dosen't work, although i can't find any error or missing thing, that could make them not work

The first one was supposed to make voices, but nothing happens

AddEntityCollideCallback("Player", "VoiceArea", "Voices", true, 1);

void Voices(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound)
{
PlaySoundAtEntity("", "ambience_voice", "Player", 0, false);
}



The second one was supposed to make a terror sound, like a monster was hunting, but nothing happens

SetEntityPlayerInteractCallback("potion_sanity_1", "FakeMonster", true);

void FakeMonster(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound)
{
PlaySoundAtEntity("", "ui_terror_meter", "Player", 0, false);
}




The last thing that irritates me, is that i dont know to make the game.
Like when you go through the last door, but instead of going to another room or map, the story ends.

I would be glad if you guys would help me

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 07-08-2012, 10:19 AM by Lizard.)
07-08-2012, 10:19 AM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#2
RE: Almost done

wrong callback syntax. I think i'll explain it to you, since you don't seem to understand the callback syntax:
When you look at http://wiki.frictionalgames.com/hpl2/amn..._functions
and search for SetEntityPlayerInteractCallback, you see that the callback syntax is void MyFunc(string &in asEntity)
All you change is "MyFunc", not anything in the brackets.

Think, before you speak Google, before you post
07-08-2012, 10:37 AM
Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#3
RE: Almost done

(07-08-2012, 10:37 AM)FastHunteR Wrote: wrong callback syntax. I think i'll explain it to you, since you don't seem to understand the callback syntax:
When you look at http://wiki.frictionalgames.com/hpl2/amn..._functions
and search for SetEntityPlayerInteractCallback, you see that the callback syntax is void MyFunc(string &in asEntity)
All you change is "MyFunc", not anything in the brackets.
DOH!!!

What a stupid mistake. I was making this in the middle of the night, so was really sleepy, which i can see let to some stupid mistakes.

Thank for correting me, on my stupidity.

Now i only have the "end the story" problem

CURRENT PROJECT:
A Fathers Secret == Just started
07-08-2012, 10:54 AM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#4
RE: Almost done

with "end of story", do you mean
StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);

Think, before you speak Google, before you post
07-08-2012, 11:13 AM
Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#5
RE: Almost done

(07-08-2012, 11:13 AM)FastHunteR Wrote: with "end of story", do you mean
StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);
*facepalm*

I think i'll just print out that side, and really look it through, before i embarrassing my self to much.(if isn't to late already) Big Grin

CURRENT PROJECT:
A Fathers Secret == Just started
07-08-2012, 11:18 AM
Find




Users browsing this thread: 1 Guest(s)