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 script
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Door open script

The script would be like this:

void OnStart()
{
AddEntityCollideCallback("Player", "name of script area", "Open wished door", true, 1);
}

void Open wished door(string &in asParent, string &in asEntity, int alState)
{
AddPropForce("Name of door", 0, 0, 0, "world");
}
void OnEnter ()
{

}

void OnLeave()

{

}

I don't know what coordinates you should put, but you can test it.
It should be something like this. Hope it helped.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 08-08-2012, 01:38 PM by The chaser.)
08-06-2012, 04:49 PM
Find


Messages In This Thread
Door open script - by iFondue - 08-06-2012, 09:50 AM
RE: Door open script - by Adny - 08-06-2012, 10:03 AM
RE: Door open script - by The chaser - 08-06-2012, 04:49 PM



Users browsing this thread: 2 Guest(s)