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
Door open automatically script
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: Door open automatically script

First, add AddEntityCollideCallback("Player", "trigger_area", "OpenDoor", true, 1);

your function to call will be

void OpenDoor(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("Door", X, Y, Z, "World"); //red is x axis, blue is z axis, green is y axis.
}

Change your X Y and Z values until they apply an appropriate force to open the door.

04-13-2011, 07:17 PM
Find


Messages In This Thread
Door open automatically script - by larslu - 04-13-2011, 07:00 PM
RE: Door open automatically script - by palistov - 04-13-2011, 07:17 PM
RE: Door open automatically script - by Josh707 - 04-16-2011, 06:28 AM



Users browsing this thread: 1 Guest(s)