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
active monster when opening a door
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: active monster when opening a door

(12-06-2011, 05:41 PM)Kainzor Wrote: i mean just open.. just open normaly....and give me script unlocking too

I won't be providing you with a script, just the concept; and you already have an unlocking door script in your other thread.

You're going to need to place a Script area in front of the door, in the direction that the door opens. All you would need to do then is add an entity collide callback to detect whether or not the door collided with the area. In the callback you simply activate the monster.

All script functions can be found here: http://wiki.frictionalgames.com/hpl2/amn..._functions
You're going to need to use AddEntityCollideCallback and SetEntityActive.

Tutorials: From Noob to Pro
(This post was last modified: 12-06-2011, 05:53 PM by Your Computer.)
12-06-2011, 05:52 PM
Website Find


Messages In This Thread
active monster when opening a door - by Kainzor - 12-06-2011, 05:35 PM
RE: active monster when opening a door - by Your Computer - 12-06-2011, 05:52 PM



Users browsing this thread: 1 Guest(s)