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...
DaAinGame Offline
Member

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

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!

Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
(This post was last modified: 03-21-2012, 04:16 AM by DaAinGame.)
03-21-2012, 04:15 AM
Find


Messages In This Thread
RE: I need to know how to force the player to 'lay' down when they enter the map... - by DaAinGame - 03-21-2012, 04:15 AM



Users browsing this thread: 1 Guest(s)