Please Read ! - 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: Please Read ! (/thread-19823.html) |
Please Read ! - ryan1431 - 01-05-2013 I have a new, more challenging-to-fix problem after getting used to HPL and scripting. In amnesia, when the "goo" is created, it fades in. Whenever i try to get the goo active by using the script "SetEntityActive("(name)", true);", it just appears, instead of fading in . I was wondering if there is a way to fix this. Your answer would be greatly appreciated. Thanks RE: Please Read ! - FlawlessHappiness - 01-06-2013 void 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 RE: Please Read ! - stokesie95 - 01-06-2013 you need to use "SetPropActiveAndFade" this will make it fade in and out instead of just appearing if you need to find some code you dont know you can check the ones use in the game RE: Please Read ! - FlawlessHappiness - 01-06-2013 (01-06-2013, 01:39 AM)stokesie95 Wrote: if you need to find some code you dont know you can check the ones use in the game Or search this website: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions RE: Please Read ! - ryan1431 - 01-06-2013 (01-06-2013, 01:29 AM)beecake Wrote: void SetPropActiveAndFade(string& asName, bool abActive, float afFadeTime); okay thanks very much, but how do i position this code so that it will know which entity i want to set active? RE: Please Read ! - str4wberrypanic - 01-06-2013 SetPropActiveAndFade("GOO_NAME_IN_EDITOR", true, TIME_IN_SECONDS_UNTIL_IT_FADES); Now if you want it to desappear, change the true for false. RE: Please Read ! - FlawlessHappiness - 01-06-2013 asName = The entitiy (In most situations) RE: Please Read ! - ryan1431 - 01-06-2013 (01-06-2013, 09:21 PM)beecake Wrote: asName = The entitiy (In most situations) alright thank you very much (01-06-2013, 09:19 PM)str4wberrypanic Wrote: SetPropActiveAndFade("GOO_NAME_IN_EDITOR", true, TIME_IN_SECONDS_UNTIL_IT_FADES); thanks very much |