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
Script PlayPropAnimation
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#1
Script PlayPropAnimation

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?
11-01-2013, 01:26 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Script PlayPropAnimation

No one knows. Only FG does.
So...

"Veni, vidi, vici."
"I came, I saw, I conquered."
11-01-2013, 02:27 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Script PlayPropAnimation

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.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-01-2013, 05:11 PM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#4
RE: Script PlayPropAnimation

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'.

[Image: mZiYnxe.png]


11-01-2013, 10:27 PM
Find




Users browsing this thread: 2 Guest(s)