Help please - 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: Help please (/thread-22634.html) |
Help please - Sabrak - 08-29-2013 Hello everyone i need a little help here. I am creating a secret way with closet (when player press button, the shelf will "move away"). So i created one shelf with some things (books, golden statue and some other things) and one same but not active. Later i made script Quote:void OnStart()but only entity that changes is golden statue and "genie bottle ". Where i made mistake? (Sorry for my english xD) RE: Help please - Adrianis - 08-29-2013 It looks like it's because all the other items, the ones that don't change, are Static objects & billboards - only Entities can be 'activated' or 'de-activated' using SetEntityActive RE: Help please - Kreekakon - 08-29-2013 SetEntityActive does not affect entities which are "StaticProps". If you want to change this open the entity of your choice in the model editor, and change its "User-Defined Variables" to "Object", and save a new file. RE: Help please - Sabrak - 08-29-2013 and is there any other way how to activate or de-activate static objects or billboards with script? RE: Help please - Kreekakon - 08-29-2013 (08-29-2013, 04:53 PM)Sabrak Wrote: and is there any other way how to activate or de-activate static objects or billboards with script? Billboards you can attach to a light, and then turn the light off with script which in turn will render the billboards invisible as well. As for static objects, you pretty much have to convert them into proper entities in the model editor. RE: Help please - Sabrak - 08-29-2013 ok, thanks i will now continue with my custom story i was stuck at this 2 hours |