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
Set Entity active for areas?
Soon Offline
Member

Posts: 50
Threads: 11
Joined: Sep 2010
Reputation: 0
#1
Set Entity active for areas?

I noticed that you can have areas start as disabled. Would there be a way to activate them once a player picks up a certain item? I was looking for a SetAreaActive function but I only saw a SetEntityActive, would that work instead?
09-23-2010, 04:32 AM
Find
theDARKW0LF Offline
Member

Posts: 150
Threads: 17
Joined: Sep 2010
Reputation: 0
#2
RE: Set Entity active for areas?

Hehe, I have a post on the exact thing a few threads down the forum. Doesn't seem like many people know, I haven't gotten a response and I posted mine hours ago.

Check out my custom stories(1)(2)!
09-23-2010, 04:55 AM
Find
Soon Offline
Member

Posts: 50
Threads: 11
Joined: Sep 2010
Reputation: 0
#3
RE: Set Entity active for areas?

On a side note... I've been gettin this weird error and I don't see a problem with my code. It says unexpected file ending as the error. It doesn't give me the error when I take out a bit of code that's not even at the end. Does that mean there's too much code? Even if that were the case, my hps file is not even close to as big as one map in the actual game. So confused.
Cancel that.. I'm an idiot, rofl. Sometimes those {} brackets seem like they're there when they're not... damn if statements!
(This post was last modified: 09-23-2010, 05:09 AM by Soon.)
09-23-2010, 05:05 AM
Find
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#4
RE: Set Entity active for areas?

You use setentityactive to set areas active
09-23-2010, 06:01 AM
Website Find
Soon Offline
Member

Posts: 50
Threads: 11
Joined: Sep 2010
Reputation: 0
#5
RE: Set Entity active for areas?

Thanks! This will save me time knowing that it will work before doing it.
09-23-2010, 06:08 AM
Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#6
RE: Set Entity active for areas?

Yeah, but look at what I wrote in theDARKW0LF's thread:
http://www.frictionalgames.com/forum/thr...l#pid37756

09-23-2010, 10:49 AM
Find




Users browsing this thread: 1 Guest(s)