Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please Help me!
str4wberrypanic Offline
Member

Posts: 241
Threads: 24
Joined: Jul 2012
Reputation: 8
#4
RE: Please Help me!

To make the player look at the door, use this script: ( i will use the functions of dnalange)

AddEntityCollideCallback("Player", "YOURSCRIPTNAMEINEDITOR", "TYPEWHATEVERYOUWANT", false, 1);



-------------


void TYPEWHATEVERYOUWANT(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorDisableAutoClose("NAMEOFTHEDOORYOUWANTTOOPEN", true);
SetSwingDoorClosed("NAMEOFTHEDOORYOUWANTTOOPEN", false, true);
AddPropForce("NAMEOFTHEDOORYOUWANTTOOPEN", 0, 0, 5600, "world");



StartPlayerLookAt("NAME OF THE DOOR", 6, 6, "");

AddTimer("", "PUT HERE THE TIME IN SECONDS THAT THE PLAYER WILL STAY LOOKING TO THE DOOR", "TimerStopLooking");





}




void TimerStopLooking(string&in asTimer)
{
StopPlayerLookAt();
}

12-10-2012, 05:34 PM
Find


Messages In This Thread
Please Help me! - by Sanyam - 12-10-2012, 04:08 PM
RE: Please Help me! - by DnALANGE - 12-10-2012, 04:32 PM
RE: Please Help me! - by Sanyam - 12-10-2012, 05:21 PM
RE: Please Help me! - by str4wberrypanic - 12-10-2012, 05:34 PM
RE: Please Help me! - by Sanyam - 12-10-2012, 05:55 PM
RE: Please Help me! - by str4wberrypanic - 12-10-2012, 06:13 PM
RE: Please Help me! - by Sanyam - 12-10-2012, 06:51 PM
RE: Please Help me! - by The chaser - 12-10-2012, 07:55 PM
RE: Please Help me! - by DnALANGE - 12-10-2012, 08:51 PM
RE: Please Help me! - by Sanyam - 12-11-2012, 07:16 PM
RE: Please Help me! - by DnALANGE - 12-11-2012, 07:23 PM
RE: Please Help me! - by The chaser - 12-11-2012, 10:27 PM
RE: Please Help me! - by DnALANGE - 12-12-2012, 12:44 AM
RE: Please Help me! - by crisosphinx - 12-12-2012, 12:48 AM
RE: Please Help me! - by Sanyam - 12-12-2012, 11:41 AM
RE: Please Help me! - by Sanyam - 12-15-2012, 04:35 PM



Users browsing this thread: 2 Guest(s)