Set Block Box Active - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Set Block Box Active (/thread-12835.html) |
Set Block Box Active - Henriksen - 01-24-2012 Hi, I was wondering if its possible to use the "SetEntityActive" func on a block box. RE: Set Block Box Active - Unearthlybrutal - 01-24-2012 It worked when I tested so I think that its possible RE: Set Block Box Active - Henriksen - 01-24-2012 (01-24-2012, 04:02 PM)Unearthlybrutal Wrote: It worked when I tested so I think that its possible Do you think it could be something with the fact that I use the "block_box_nonchar.ent" and not the "block_box.ent" RE: Set Block Box Active - Unearthlybrutal - 01-24-2012 The usual block box blocks the player, nonchar blocks the entity RE: Set Block Box Active - Henriksen - 01-24-2012 (01-24-2012, 04:10 PM)Unearthlybrutal Wrote: The usual block box blocks the player, nonchar blocks the entityThen 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 RE: Set Block Box Active - Tripication - 01-24-2012 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 RE: Set Block Box Active - flamez3 - 01-24-2012 Block Box can use SetEntityActive. RE: Set Block Box Active - Henriksen - 01-24-2012 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! RE: Set Block Box Active - palistov - 01-25-2012 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. |