Lizard
Member
Posts: 174
Threads: 23
Joined: Jul 2012
Reputation:
5
|
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 |
|
Cruzore
Senior Member
Posts: 301
Threads: 2
Joined: Jun 2012
Reputation:
37
|
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 |
|
Lizard
Member
Posts: 174
Threads: 23
Joined: Jul 2012
Reputation:
5
|
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 |
|
Cruzore
Senior Member
Posts: 301
Threads: 2
Joined: Jun 2012
Reputation:
37
|
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 |
|
Lizard
Member
Posts: 174
Threads: 23
Joined: Jul 2012
Reputation:
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)
CURRENT PROJECT:
A Fathers Secret == Just started
|
|
07-08-2012, 11:18 AM |
|
|