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 Block Box Active
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#1
Set Block Box Active

Hi, I was wondering if its possible to use the "SetEntityActive" func on a block box.
01-24-2012, 03:57 PM
Find
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#2
RE: Set Block Box Active


It worked when I tested so I think that its possibleSmile

When Life No Longer Exists
Full-conversion mod
01-24-2012, 04:02 PM
Website Find
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#3
RE: Set Block Box Active

(01-24-2012, 04:02 PM)Unearthlybrutal Wrote: It worked when I tested so I think that its possibleSmile

Do you think it could be something with the fact that I use the "block_box_nonchar.ent" and not the "block_box.ent"
01-24-2012, 04:04 PM
Find
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#4
RE: Set Block Box Active

The usual block box blocks the player, nonchar blocks the entity

When Life No Longer Exists
Full-conversion mod
01-24-2012, 04:10 PM
Website Find
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#5
RE: Set Block Box Active

(01-24-2012, 04:10 PM)Unearthlybrutal Wrote: The usual block box blocks the player, nonchar blocks the entity
Then its the nonchar im having problems with. I am trying to block entities and I want to disable it when I use a lever. But the setentity doesnt work for it I believe. Maybe there is another func to disable block boxes
01-24-2012, 04:12 PM
Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#6
RE: Set Block Box Active

try this, tbh i've never touched the command and have no idea what it does.

SetPropActiveAndFade(string& asName, bool abActive, float afFadeTime);

Activates/deactivates a prop.
asName - internal name
abActive - nothing to add
afFadeTime - time in seconds until prop fully fades


But its worth a shot i guess

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
01-24-2012, 05:22 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#7
RE: Set Block Box Active

Block Box can use SetEntityActive.

01-24-2012, 05:30 PM
Find
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#8
RE: Set Block Box Active

Just got back from basket. Gonna try the function Trip provided me.

Flamez3, the block box can but I am not sure if the block box nonchar can.

EDIT: Didn't work. Thanks for the idea though. Guess I'll have to find a other way then. Thanks for all the answears anyway!
(This post was last modified: 01-24-2012, 06:35 PM by Henriksen.)
01-24-2012, 06:31 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#9
RE: Set Block Box Active

Yes they work. I've used SetEntityActive on nonchar block boxes before. Delete map cache, check naming, use debug messages to make sure your script is working. The usual.

01-25-2012, 02:19 AM
Find




Users browsing this thread: 2 Guest(s)