JFW_Vechicle_Animation_Trigger? [message #478553] |
Wed, 09 January 2013 18:16 |
|
roszek
Messages: 296 Registered: June 2010
Karma: 0
|
Recruit |
|
|
Time (how long the timer should run for) ?
TimerNum (what number to use for the timer) ?
UpTrigger (first trigger to look for)
DownTrigger (second trigger to look for) ?
Can someone explain these settings; I don't understand.
For instance if i wanted to play some animation when I enter/exit a vehicle what value would I enter as trigger?
And what timer?
|
|
|
Re: JFW_Vechicle_Animation_Trigger? [message #478579 is a reply to message #478553] |
Thu, 10 January 2013 16:45 |
Troll King
Messages: 56 Registered: June 2012 Location: Netherlands
Karma: 0
|
Recruit |
|
|
When attached it will start a timer with number: "TimerNum" and with a time set to: "Time".
When the timer ends it does NOT check for the number.
So you really can leave the "TimerNum" just empty, it does the same job anyway.
Anyway when it's done it will check if it stored any positions of the object it's attached to, if not it will store them now. Then it will check if those stored positions changed from what they are now. (ie the object moved around...). If so it will save the new position of the object.
It will then check if it is NOT enabled.
it will then toggle it on.
It will try to start animation: "Animation" with the subobject "Subobject" and firstframe "FirstFrame", lastframe: "LastFrame" and final: "Blended" if the anim should be blended yes or no.
The timer will stop now.
Back to checking if it moved. If it didn't move then it will clear the current animation.
The script also checks for when it's animation is complete.
if it has completed the animation "Animation" then it will clear all it's animations and start it all over again with the same settings.
the script listens to the following customs:
if you send a custom with type = "UpTrigger"
it will then start an animation with all the params starting with "Up" and do the same as above.
the second custom type = "DownTrigger"
and will do the exact same as above but it uses the "Down" prefix.
That's about all it does, you can also use this script in SinglePlayer since it uses AutoSaveVariables
EDIT: sorry overlooked a line of code it does repeat its timer with the same settings...
EDIT #2: Don't get fooled by its name that it will only work on vehicles. thats bullshit..
However you will crash your server if you don't attach it to an object classified as a PhysicalGameObj
Also Known As: Neijwiert
[Updated on: Thu, 10 January 2013 16:49] Report message to a moderator
|
|
|
|
|
Re: JFW_Vechicle_Animation_Trigger? [message #478594 is a reply to message #478553] |
Fri, 11 January 2013 10:49 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
The fastest way to crash LE is to simply use it... that heap of junk crashes more often than any other program I've ever seen, including stuff we develop at work when in the really early pre-alpha stage.
|
|
|