| 
		
	
		| Janni1234   Member
 
 Posts: 134
 Threads: 24
 Joined: Jan 2011
 Reputation: 
1
 | 
			| RE: Player falls 
 
				 (06-14-2011, 12:46 PM)Russ Money Wrote:  For the "lying on the floor" effect, use this function:
 FadePlayerRollTo(50, 150, 150);
 
 Then to return the camera back to horizontal
 
 FadePlayerRollTo(0, 33, 33);
 
 Insert those where they need to be in Janni1234's script.
 
Okay.Thanks.
			 |  |  
	| 06-14-2011, 01:26 PM |  |  
	
		| Russ Money   Senior Member
 
 Posts: 360
 Threads: 25
 Joined: Dec 2010
 Reputation: 
4
 | 
			| RE: Player falls 
 
				 (06-14-2011, 01:26 PM)Janni1234 Wrote:  Okay.Thanks. 
No prob bob.
			 
 |  |  
	| 06-14-2011, 01:47 PM |  |  
	
		| miguli   Junior Member
 
 Posts: 43
 Threads: 7
 Joined: Jun 2011
 Reputation: 
0
 | 
			| 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 |  |  
	
		| xtron   Senior Member
 
 Posts: 402
 Threads: 37
 Joined: May 2011
 Reputation: 
2
 | 
			| RE: Player falls 
 
				well...I guess you could try to change the SetPlayerStateToNormal(); to SetPlayerStateToNormal(false); or just delete it.
			 
 ![[Image: 44917299.jpg]](http://img204.imageshack.us/img204/520/44917299.jpg) Dubstep <3 |  |  
	| 06-14-2011, 06:37 PM |  |  
	
		| Roenlond   Senior Member
 
 Posts: 331
 Threads: 3
 Joined: Apr 2011
 Reputation: 
0
 | 
			| RE: Player falls 
 
				SetPlayerStateToNormal(); isn't a function, at least not in the wiki page. So it's probably calling a custom function and since there's nothing with that name to call, it errors out. Remove the line and you shouldn't have the error, I believe    |  |  
	| 06-14-2011, 06:45 PM |  |  
	
		| miguli   Junior Member
 
 Posts: 43
 Threads: 7
 Joined: Jun 2011
 Reputation: 
0
 | 
			| RE: Player falls 
 
				Not working.. :/ Works, but i dont know where i put that falling.
 (XD i forgot save map before testing, sorry guys!!)
 
 Amnesia map:Hope - Work in Progress.
 
				
(This post was last modified: 06-14-2011, 08:22 PM by miguli.)
 |  |  
	| 06-14-2011, 08:03 PM |  |  
	
		| nemesis567   Posting Freak
 
 Posts: 874
 Threads: 65
 Joined: May 2011
 Reputation: 
10
 | 
			| RE: Player falls 
 
				nevermind it...
			 
  Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
 
				
(This post was last modified: 06-14-2011, 11:02 PM by nemesis567.)
 |  |  
	| 06-14-2011, 11:01 PM |  |  
	
		| miguli   Junior Member
 
 Posts: 43
 Threads: 7
 Joined: Jun 2011
 Reputation: 
0
 | 
			| RE: Player falls 
 
				Now everything is perfect falling and everything   
 Amnesia map:Hope - Work in Progress.
 |  |  
	| 06-15-2011, 01:59 AM |  |  
	
		| Hardarm   Posting Freak
 
 Posts: 891
 Threads: 39
 Joined: Apr 2011
 Reputation: 
43
 | 
			| RE: Player falls 
 
				If you want the player really falling i don't know because the plane isn't an entity, though. Am i wrong? i can't even disable it when i click to it on the editor.
			 
 listen to boards of canada |  |  
	| 06-15-2011, 01:23 PM |  |  |