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
Please help me :(
pdkgaming Offline
Junior Member

Posts: 16
Threads: 3
Joined: Jun 2012
Reputation: 0
#12
RE: Please help me :(

(06-12-2012, 06:22 PM)Datguy5 Wrote:
(06-12-2012, 06:20 PM)pdkgaming Wrote:
(06-12-2012, 06:19 PM)Datguy5 Wrote:
(06-12-2012, 06:18 PM)pdkgaming Wrote:
(06-12-2012, 06:15 PM)Datguy5 Wrote: You seem to have Setenemy to hallucination in between the collidecallbacks.Try moving it?
It doesn't matter where you put the function right? as long as they trigger an event.. right? And even so.. where should I move it to?

You dont actually even need that.You can go to the level editor and click the enemy and then click the hallucination button in the other tab.
Oh, lol.. I didn't know that xD Thanks! Smile
Np Big Grin
oh... still doesn't work though xD

Do you know what I did wrong at the monster part?


void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "playsound", true, 1);
AddUseItemCallback("StudyKey", "studykey_1", "mansion_2", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "ScriptArea_2", "EnemyAppear", true, 1);
AddEntityCollideCallback("servant_grunt_1", "ScriptArea_3", "EnemyDisable", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_4", "LookTimer", true, 1);
}

void playsound(string &in asParent, string &in asChild, int alState)
{
PlayMusic("break_wood1.ogg", false, 1, 0, 1.0, false);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlaySoundAtEntity("unlock_door.snt", "unlock_door", "mansion_2", 0.0f, false);
RemoveItem("studykey_1");
}

void EnemyAppear(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 1, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
}

void EnemyDisable(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("servant_grunt_1", false);
}

EDIT: Nevermind :p for some reason, "servant_grunt_1" changed to "servant_grunt_2" in de level editor

But the first problem still exists :p

Map tester
CS creator (beginner)
Youtube:
http://www.youtube.com/pdkgaming
(This post was last modified: 06-12-2012, 06:40 PM by pdkgaming.)
06-12-2012, 06:26 PM
Website Find


Messages In This Thread
Please help me :( - by pdkgaming - 06-12-2012, 04:20 PM
RE: Please help me :( - by Adny - 06-12-2012, 05:14 PM
RE: Please help me :( - by pdkgaming - 06-12-2012, 05:18 PM
RE: Please help me :( - by Science - 06-12-2012, 05:18 PM
RE: Please help me :( - by Adny - 06-12-2012, 05:22 PM
RE: Please help me :( - by pdkgaming - 06-12-2012, 05:48 PM
RE: Please help me :( - by Datguy5 - 06-12-2012, 06:15 PM
RE: Please help me :( - by pdkgaming - 06-12-2012, 06:18 PM
RE: Please help me :( - by Datguy5 - 06-12-2012, 06:19 PM
RE: Please help me :( - by pdkgaming - 06-12-2012, 06:20 PM
RE: Please help me :( - by Datguy5 - 06-12-2012, 06:22 PM
RE: Please help me :( - by pdkgaming - 06-12-2012, 06:26 PM
RE: Please help me :( - by Your Computer - 06-12-2012, 11:00 PM
RE: Please help me :( - by pdkgaming - 06-13-2012, 01:02 PM
RE: Please help me :( - by pdkgaming - 06-12-2012, 08:11 PM
RE: Please help me :( - by Adny - 06-12-2012, 10:50 PM
RE: Please help me :( - by pdkgaming - 06-13-2012, 09:00 PM
RE: Please help me :( - by GrAVit - 06-13-2012, 09:31 PM
RE: Please help me :( - by pdkgaming - 06-13-2012, 09:33 PM
RE: Please help me :( - by GrAVit - 06-13-2012, 09:46 PM
RE: Please help me :( - by pdkgaming - 06-13-2012, 09:47 PM
RE: Please help me :( - by GrAVit - 06-13-2012, 09:51 PM
RE: Please help me :( - by pdkgaming - 06-13-2012, 09:59 PM
RE: Please help me :( - by GrAVit - 06-13-2012, 10:45 PM
RE: Please help me :( - by pdkgaming - 06-14-2012, 07:01 PM
RE: Please help me :( - by GrAVit - 06-15-2012, 12:16 PM
RE: Please help me :( - by pdkgaming - 06-18-2012, 10:05 PM
RE: Please help me :( - by GrAVit - 06-19-2012, 01:57 PM



Users browsing this thread: 1 Guest(s)