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


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make door moves??? N00B
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#1
Bug  How to make door moves??? N00B

Hello N00B here

How do you make a door open ??? Undecided Undecided Undecided

...
05-01-2011, 11:22 PM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#2
RE: How to make door moves??? N00B

(05-01-2011, 11:22 PM)X4anco Wrote: Hello N00B here

How do you make a door open ??? Undecided Undecided Undecided

void OnStart()
{
AddEntityCollideCallback("Player", "scarestuff_area", "scarestuff", true, 1);
}

void scarestuff(string &in asParent , string &in asChild , int alState)
{
SetSwingDoorClosed("scarydoor", false, false);
SetSwingDoorDisableAutoClose("scarydoor", true);
AddPropImpulse("scarydoor", [b]5.0, 0, 0[/b], "World");
}

Excerpt of a code I use, it works for me but you may need to tweak the bold part with your own coordinates.
(This post was last modified: 05-01-2011, 11:28 PM by Roenlond.)
05-01-2011, 11:27 PM
Find




Users browsing this thread: 1 Guest(s)