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
Script Help How to make a door open ajar?
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#9
RE: How to make a door open ajar?

(02-13-2013, 12:41 PM)BeeKayK Wrote: Oh i used a script like this once.
What happened in the script was basically a timer that kept pushing the door a little bit, a certain amount of time. Like this:

void TimerPushDoor(string &in asTimer)
{
if(GetLocalVarInt("PushDoorVar") == 10)
{
return;
}

AddLocalVarInt("PushDoorVar", 1);
AddPropImpulse("Door", 0, 0, 0.5f, "World");
AddTimer("TimerPushDoor", 0.2, "TimerPushDoor");
}

This is what I've used, too. It's actually how Frictional Games does it in the first map of TDD.

In Ruins [WIP]
02-13-2013, 05:02 PM
Find


Messages In This Thread
How to make a door open ajar? - by serbusfish - 02-13-2013, 03:42 AM
RE: How to make a door open ajar? - by MulleDK19 - 02-13-2013, 03:43 AM
RE: How to make a door open ajar? - by Adrianis - 02-13-2013, 11:19 AM
RE: How to make a door open ajar? - by Kreekakon - 02-13-2013, 11:56 AM
RE: How to make a door open ajar? - by Adrianis - 02-13-2013, 12:03 PM
RE: How to make a door open ajar? - by Kreekakon - 02-13-2013, 11:27 AM
RE: How to make a door open ajar? - by NaxEla - 02-13-2013, 05:02 PM
RE: How to make a door open ajar? - by serbusfish - 02-13-2013, 08:46 PM
RE: How to make a door open ajar? - by serbusfish - 02-14-2013, 01:01 AM
RE: How to make a door open ajar? - by NaxEla - 02-14-2013, 01:36 AM



Users browsing this thread: 1 Guest(s)