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
How to block a door until.....
iFondue Offline
Junior Member

Posts: 28
Threads: 6
Joined: Apr 2012
Reputation: 0
#5
RE: How to block a door until.....

Yes I know, I was on Frictional Games Wiki, but didn't think that it is possible to sxript it so easy...

Thanks, it worked absolutely perfect.

If other people have the same problem as me, here is how you should script it:

1. First lock the door in the level editor.


void OnStart()
{
SetEntityCallbackFunc("lantern", "OnPickup");
}

void OnEnter()

void OnPickup(string &in asEntity, string &in type)
{
SetSwingDoorLocked("door", false, true);
}



Thats all! If you want to know how to do the message part watch here!


Hope It was helpful...

Greets, and thank you CrazyArts!

-iFondue
06-15-2012, 08:20 PM
Find


Messages In This Thread
How to block a door until..... - by iFondue - 06-15-2012, 06:56 PM
RE: How to block a door until..... - by MaZiCUT - 06-15-2012, 07:16 PM
RE: How to block a door until..... - by iFondue - 06-15-2012, 07:22 PM
RE: How to block a door until..... - by MaZiCUT - 06-15-2012, 07:42 PM
RE: How to block a door until..... - by iFondue - 06-15-2012, 08:20 PM
RE: How to block a door until..... - by MaZiCUT - 06-15-2012, 10:35 PM
RE: How to block a door until..... - by iFondue - 06-16-2012, 03:54 PM



Users browsing this thread: 1 Guest(s)