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
Kainzor Offline
Junior Member

Posts: 6
Threads: 2
Joined: Dec 2011
Reputation: 0
#1
active monster when opening a door

cant find.... havent looked much kinda buzy... but for those who are not can u give me script how to active a monster whn opening a door
12-06-2011, 05:35 PM
Find
Your Computer Offline
SCAN ME!

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

By opening do you mean unlocking?

Tutorials: From Noob to Pro
12-06-2011, 05:40 PM
Website Find
Kainzor Offline
Junior Member

Posts: 6
Threads: 2
Joined: Dec 2011
Reputation: 0
#3
RE: active monster when opening a door

i mean just open.. just open normaly....and give me script unlocking too

is it pretty much the same as u script the key?
(This post was last modified: 12-06-2011, 05:50 PM by Kainzor.)
12-06-2011, 05:41 PM
Find
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
Kainzor Offline
Junior Member

Posts: 6
Threads: 2
Joined: Dec 2011
Reputation: 0
#5
RE: active monster when opening a door

thanks
12-06-2011, 06:21 PM
Find




Users browsing this thread: 2 Guest(s)