![]() |
Script PlayPropAnimation - 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: Script PlayPropAnimation (/thread-23764.html) |
Script PlayPropAnimation - Neelke - 11-01-2013 void PlayPropAnimation(string& asProp, string& asAnimation, float afFadeTime, bool abLoop, string& asCallback); Makes the prop play an animation and calls a function. Callback syntax: void MyFunc(string &in asProp) asProp - internal name of the prop asAnimation - animation to play afFadeTime - ? abLoop - determines whether the animation loops asCallback - function to call afFadeTime - ? Anyone knows what this afFadeTime does? RE: Script PlayPropAnimation - PutraenusAlivius - 11-01-2013 No one knows. Only FG does. So... RE: Script PlayPropAnimation - The chaser - 11-01-2013 I don't really know, but I'd say it's the delay (eg. you activate the script with 0.5 of afFade, it will delay 0.5 seconds in playing the animation). I don't know for sure, though. RE: Script PlayPropAnimation - Acies - 11-01-2013 My guess is either what the chaser said, or that it will simply skip the first 0.5 seconds of the animation and start from somewhere 'in the middle of it'. |