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
#7
RE: Ge15t's Help Thread!

I tried for the sound file first, and the sound still doesnt play. Which is weird, my AddEntityCollideCallback for the monster spawn works in script area 1 works fine, but when a sound file is attempted to be played in the same fashion, it doesnt work. Its almost as if the game ignores the function under void start.

As for the door bit, still not happening, fatal error. This is what it looks like atm:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "Soundarea_1" , "SoundFunc1" , true , 1);
SetEntityPlayerInteractCallback("Door", "Doorfunction", 0);
GiveItemFromFile("lantern", "lantern.ent");
for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
PlayMusic("04_amb.ogg", true, 1, 3, 0, true);
}

void Doorfunction(string &in entity, string &in type)

{
PlaySoundAtEntity("ramble", "CH01_DanielRamble_01.", "door_2", 0);
}

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

void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
}

Is it because there is no actual 'function' for trying to open the door? Or is that automatically assumed by the game?
02-21-2011, 08:00 PM
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)