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 when walking into an area?
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#2
RE: How to make a door open when walking into an area?

Do you mean the door should open if the player is walking in an area?
My english is very bad.
If you mean this you could do that
void OnStart()
{
AddEntityCollideCallback("Player", "Name of Area", "Func", true, 1);
}
void Func(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorDisableAutoClose("Name of door", true);
SetSwingDoorClosed("Name of door",false, true);
AddPropForce("Name of door", -1200, 0, 0, "world");
}


My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


(This post was last modified: 02-25-2012, 07:49 PM by Shives.)
02-25-2012, 07:48 PM
Find


Messages In This Thread
RE: How to make a door open when walking into an area? - by Shives - 02-25-2012, 07:48 PM



Users browsing this thread: 1 Guest(s)