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
I need to know how to force the player to 'lay' down when they enter the map...
7thProductions Offline
Junior Member

Posts: 42
Threads: 17
Joined: Mar 2012
Reputation: 0
#4
RE: I need to know how to force the player to 'lay' down when they enter the map...

(03-21-2012, 04:15 AM)DaAinGame Wrote: If it helps you at all here's a little sample of these commands taken from my script on my custom story.

void Collapse(string &in asItem, string &in asEntity)
{
AddPlayerBodyForce(0, 0, -30000, false);
FadeOut(.5);
FadePlayerRollTo(50, 220, 220); <--- This is causing the player to be knocked over during the Collapse
SetPlayerCrouching(true); <---- Use this for a more realism for when the player is laying down
SetPlayerActive(false);
AddTimer("", 5, "GetUp");
PlaySoundAtEntity("", "explosion_rock_large", "web_1", 0, false);
SetLanternActive(false, false);
}

void GetUp(string &in asTimer)
{
SetEntityActive("cave_in_1", true);
SetEntityActive("cave_in_2", true);
SetEntityActive("cave_in_3", true);
SetEntityActive("cave_in_4", true);
SetEntityActive("web_1", false);
FadeIn(7);
AddTimer("", 7.5, "StandUp");
RemoveItem("lantern_1");
}

void StandUp(string &in asTimer)
{
FadePlayerRollTo(0, 33, 33); <---- This is returning the player back the default view
SetPlayerCrouching(false);
SetMessage("Broke", "Lantern", 3);
SetPlayerActive(true);
}

If you need or want anymore help feel free to ask!

okay, I added the parts of your script that I needed for my script but when the player stands back up, the screen is still shaking and they are still standing at an angle. do you have any idea how to fix this?
[EDIT] so I've managed to get the screen to stop shaking, but the player is still standing at an angle even after everything is supposed to go back to normal :/







(This post was last modified: 03-21-2012, 09:14 PM by 7thProductions.)
03-21-2012, 08:31 PM
Find


Messages In This Thread
RE: I need to know how to force the player to 'lay' down when they enter the map... - by 7thProductions - 03-21-2012, 08:31 PM



Users browsing this thread: 1 Guest(s)