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
Nkmols' question
nkmol Offline
Senior Member

Posts: 252
Threads: 19
Joined: Feb 2011
Reputation: 4
#11
RE: Forge to look at object script

an example, if the brute is in front of my cabine (pathnodearea_1) there is a script on that area (scriptArea_2) for sounds.
but when i put like react_breath.snt there is only 1 sound, that's not very long Tongue so how could i activate multiple sounds, different .ogg files, and not at one time?
void WalkLeave(string &in asTimer)
{
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 5.0f, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 3.0f, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0.0f, "");
    AddEntityCollideCallback("servant_grunt_1", "ScriptArea_1", "Leaving", false, 1);
    AddEntityCollideCallback("servant_grunt_1", "ScriptArea_2", "Sound", true, 1);
}

void Sound(string &in asParent, string &in asChild, int alState)
{
    PlaySoundAtEntity("PlayerScared", "react_breath.snt", "Player", 0.0f, true);
}
(This post was last modified: 02-22-2011, 09:28 PM by nkmol.)
02-22-2011, 09:27 PM
Find


Messages In This Thread
Nkmols' question - by nkmol - 02-21-2011, 05:23 PM
RE: Forge to look at object script - by Mofo - 02-21-2011, 07:31 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 09:22 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 09:47 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 10:48 PM
RE: Forge to look at object script - by Ongka - 02-21-2011, 11:06 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 11:17 PM
RE: Forge to look at object script - by nkmol - 02-22-2011, 03:55 PM
RE: Forge to look at object script - by nkmol - 02-22-2011, 09:27 PM
RE: Nkmols' question - by nkmol - 02-22-2011, 10:40 PM
RE: Nkmols' question - by nkmol - 02-23-2011, 04:55 PM
RE: Nkmols' question - by Tanshaydar - 02-23-2011, 07:16 PM
RE: Nkmols' question - by nkmol - 02-23-2011, 09:46 PM
RE: Nkmols' question - by nkmol - 02-24-2011, 10:46 PM
RE: Nkmols' question - by Linus Ågren - 02-24-2011, 10:48 PM
RE: Nkmols' question - by nkmol - 02-25-2011, 03:35 PM
RE: Nkmols' question - by nkmol - 02-27-2011, 04:29 PM
RE: Nkmols' question - by Linus Ågren - 02-27-2011, 05:15 PM
RE: Nkmols' question - by Pandemoneus - 02-27-2011, 05:59 PM
RE: Nkmols' question - by nkmol - 02-27-2011, 06:25 PM
RE: Nkmols' question - by nkmol - 03-02-2011, 07:13 AM
RE: Nkmols' question - by nkmol - 03-03-2011, 05:21 PM
RE: Nkmols' question - by nkmol - 03-04-2011, 02:44 PM
RE: Nkmols' question - by nkmol - 03-06-2011, 06:51 PM
RE: Nkmols' question - by nkmol - 03-08-2011, 06:25 PM



Users browsing this thread: 1 Guest(s)