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
#27
RE: Please help me :(

(06-15-2012, 12:16 PM)GrAVit Wrote:
(06-14-2012, 07:01 PM)pdkgaming Wrote: okay.. worked on it a bit and changed the script.. It is easier to read now but the same problem is still there... here is the part of the script where it is supposed to look at 3 different entities.. though it still watches at "corpse_male_torso_1" I don't see a problem... So here I am.. asking for help again >.<


void Look_at_corpse(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("corpse_male_torso_1", 100, 100, "Function_corpse");
}

void Function_corpse(string &in asTimer)
{
AddTimer("LookNext", 1, "Timer_Next_2");
}

void Timer_Next_2(string &in asEntity)
{
StartPlayerLookAt("chest_of_drawers_nice_broken_1", 100, 100, "Function_painting");
}

void Function_painting(string &in asTimer)
{
AddTimer("LookNext3", 1, "Timer_Next_3");
}

void Timer_Next_3(string &in asEntity)
{
StartPlayerLookAt("painting03_1", 100, 100, "Function_Sanity");
}

void Function_Sanity(string &in asEntity, string &in asTimer)
{
SetPlayerSanity(0);
FadeOut(5);
AddTimer("newmap", 5, "Change_Map");
}

void Change_Map(string &in asEntity)
{
ChangeMap("new2.map", "Player_startPos_1", "", "");
}

Owh btw... dont mind the change_map function.. that was just for myself so I knew what to do next.. I dont have another map yet, I was just giving myself a sketch while I was at school scripting.. So couldn't test it yet :p


Try this.
void Look_at_corpse(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("corpse_male_torso_1", 100, 100, "");
AddTimer("LookNext", 1, "Timer_Next_2");
}

void Timer_Next_2(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("chest_of_drawers_nice_broken_1", 100, 100, "");
AddTimer("LookNext3", 1, "Timer_Next_3");
}

void Timer_Next_3(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("painting03_1", 100, 100, "");
SetEntityPlayerLookAtCallback("painting03_1", "Function_Sanity", true);
}


void Function_Sanity(string &in asEntity, string &in asTimer)
{
SetPlayerSanity(0);
FadeOut(5);
AddTimer("newmap", 5, "Change_Map");
}


void Change_Map(string &in asEntity)
{
StopPlayerLookAt();
ChangeMap("new2.map", "Player_startPos_1", "", "");
}


Works for a bit.. It looks at the corps and at the chest of drawers etc. but stops looking from there and doesn't go to the painting.. the name of the entity is right in the script... So I don't know what's wrong.. Sad
Owh and sorry for late reply... I didn't get a notification :o

Map tester
CS creator (beginner)
Youtube:
http://www.youtube.com/pdkgaming
(This post was last modified: 06-18-2012, 10:06 PM by pdkgaming.)
06-18-2012, 10:05 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)