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
Ge15t's Help Thread!
Ge15t Offline
Junior Member

Posts: 48
Threads: 8
Joined: Feb 2011
Reputation: 0
#5
RE: Ge15t's Help Thread!

Thanks for the replies, but no that doesnt seem to work. I tried playing around with it a bit, but still crashes with fatal error. So is it possible to essentially make your own functions? Like what you did there?

EDIT: I found this in the script functions page, so slightly edited your layout there:

void SetEntityPlayerInteractCallback("Door", "Doorfunction", 0)
{
Doorfunction(string &in entity, string &in type);
PlaySoundAtEntity("ramble", "CH01_DanielRamble_01", "door_2", 0);
}

I have played around with the {} a bit as well, but still fatal error.
I am also having trouble with another function:
void OnStart()
{
AddEntityCollideCallback("Player" , "SoundArea_1" , "SoundFunc1" , true , 1);
}

and:
void SoundFunc1(string &in asParent , string &in asChild , int alState)
{
PlaySoundAtEntity("babycry", "insanity_baby_cry1.ogg", "Soundarea_1", 0.0f, false);
}

The game actually loads, but no sound is played when the soundarea is entered.. Without a crash I honestly do not see what I am doing wrong lol
(This post was last modified: 02-21-2011, 11:44 AM by Ge15t.)
02-21-2011, 11:03 AM
Find


Messages In This Thread
Ge15t's Help Thread! - by Ge15t - 02-19-2011, 07:48 AM
RE: Ge15t's Help Thread! - by Oscar House - 02-19-2011, 10:24 AM
RE: Ge15t's Help Thread! - by Ge15t - 02-20-2011, 08:58 AM
RE: Ge15t's Help Thread! - by Oscar House - 02-20-2011, 09:37 AM
RE: Ge15t's Help Thread! - by Ge15t - 02-21-2011, 11:03 AM
RE: Ge15t's Help Thread! - by Oscar House - 02-21-2011, 04:48 PM
RE: Ge15t's Help Thread! - by Ge15t - 02-21-2011, 08:00 PM
RE: Ge15t's Help Thread! - by Oscar House - 02-21-2011, 08:52 PM
RE: Ge15t's Help Thread! - by Ge15t - 02-21-2011, 09:47 PM
RE: Ge15t's Help Thread! - by Ge15t - 02-23-2011, 07:10 AM
RE: Ge15t's Help Thread! - by nkmol - 02-23-2011, 04:29 PM



Users browsing this thread: 1 Guest(s)