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.....
MaZiCUT Offline
Senior Member

Posts: 536
Threads: 31
Joined: Jun 2012
Reputation: 17
#6
RE: How to block a door until.....

(06-15-2012, 08:20 PM)iFondue Wrote: 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
No problem, that's why i love anglescript, it's easy and even a noob like me can teach it out.

Hi.
06-15-2012, 10:35 PM
Website 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)