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
Activate Area?
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#1
Activate Area?

Hey guys, I was just wondering if there was any way to make and AREA activate on item pick up.

E.g. Walk into room, pick up key(wich activates my last problem[Spawning a pile of bodies]), then walk out of SAME Doorway but this time with the Area ACTIVE so that when player collides, it forces him/her to look at the bodies that have just been activated.

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 12-28-2011, 06:29 AM by Tripication.)
12-28-2011, 06:17 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Activate Area?

Make the area unactive in the lvl editor. Then use

SetEntityActive("nameofscriptarea", true);

12-28-2011, 06:18 AM
Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#3
RE: Activate Area?

Oh my bad, i didn't realize that Areas were still considered as Entities. My bad

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
12-28-2011, 06:19 AM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: Activate Area?

Or you can make the area so it only triggers when leaving the room Smile like when you go in to the room it wont trigger but when you are going to leave the room it triggers and make you look at the bodies Smile

12-28-2011, 03:01 PM
Find




Users browsing this thread: 1 Guest(s)