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
Player falls
miguli Offline
Junior Member

Posts: 43
Threads: 7
Joined: Jun 2011
Reputation: 0
#13
RE: Player falls

Not working, and i dont know where put those:
FadePlayerRollTo(50, 150, 150);
FadePlayerRollTo(0, 33, 33);

Error comes and says:

FATAL ERROR: Could not load script file 'custosm_stories/plah/plah/plah/plaah/castleway.hps'! main(53,1) : ERR : No matching signatures to 'SetPlayerStateToNormal()'

Script:

Quote:void OnStart()
{
AddUseItemCallback("", "key_1", "door_locked_1", "UsedKeyOnDoor", true);
SetEntityPlayerInteractCallback("key_1", "Func03", true);
AddEntityCollideCallback("Player", "yourarea", "yourarea", true, 1);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_locked_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_locked_1", 0, false);
RemoveItem("key_1");
}

void Func03(string &in asEntity)
{
SetEntityActive("grunt_2", true);
AddEnemyPatrolNode("grunt_2", "PathNodeArea_1", 0.0f, "");
AddEnemyPatrolNode("grunt_2", "PathNodeArea_2", 0.0f, "");
AddEnemyPatrolNode("grunt_2", "PathNodeArea_3", 0.0f, "");
AddEnemyPatrolNode("grunt_2", "PathNodeArea_4", 0.0f, "");
AddEnemyPatrolNode("grunt_2", "PathNodeArea_5", 0.0f, "");
AddEnemyPatrolNode("grunt_2", "PathNodeArea_6", 0.0f, "");
AddEnemyPatrolNode("grunt_2", "PathNodeArea_7", 0.0f, "");
AddEnemyPatrolNode("grunt_2", "PathNodeArea_8", 0.0f, "");
AddEnemyPatrolNode("grunt_2", "PathNodeArea_9", 0.0f, "");

}

void yourarea(string &in asParent , string &in asChild , int alState)
{
SetPlayerCrouching(true);
FadeOut(2);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
AddTimer("Timer", 2.0f, "wakeup");
SetPlayerJumpDisabled(true);
SetInventoryDisabled(true);
}

void wakeup(string &in asTimer)
{
StartPlayerLookAt("ScriptArea_1", 2.0, 3.0f, "");
FadeRadialBlurTo(0.07, 0.015f);
FadeIn(2);
AddTimer("Timer", 1.0f, "begin");
}

void begin(string &in asTimer)
{
SetPlayerCrouching(false);
SetPlayerJumpDisabled(false);
SetInventoryDisabled(false);
SetPlayerStateToNormal();
FadeRadialBlurTo(0, 1);
}

// Run when leaving map
void OnLeave()
{

}

Amnesia map:
Hope - Work in Progress.
06-14-2011, 05:29 PM
Find


Messages In This Thread
Player falls - by miguli - 06-13-2011, 10:49 PM
RE: Player falls - by Nye - 06-13-2011, 10:56 PM
RE: Player falls - by miguli - 06-13-2011, 10:58 PM
RE: Player falls - by xtron - 06-13-2011, 11:19 PM
RE: Player falls - by miguli - 06-13-2011, 11:23 PM
RE: Player falls - by nofsky - 06-14-2011, 05:52 AM
RE: Player falls - by Janni1234 - 06-14-2011, 11:55 AM
RE: Player falls - by ferryadams10 - 06-14-2011, 12:21 PM
RE: Player falls - by Janni1234 - 06-14-2011, 12:38 PM
RE: Player falls - by Russ Money - 06-14-2011, 12:46 PM
RE: Player falls - by Janni1234 - 06-14-2011, 01:26 PM
RE: Player falls - by Russ Money - 06-14-2011, 01:47 PM
RE: Player falls - by miguli - 06-14-2011, 05:29 PM
RE: Player falls - by xtron - 06-14-2011, 06:37 PM
RE: Player falls - by Roenlond - 06-14-2011, 06:45 PM
RE: Player falls - by miguli - 06-14-2011, 08:03 PM
RE: Player falls - by nemesis567 - 06-14-2011, 11:01 PM
RE: Player falls - by miguli - 06-15-2011, 01:59 AM
RE: Player falls - by Hardarm - 06-15-2011, 01:23 PM



Users browsing this thread: 2 Guest(s)