Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » JFW_Vechicle_Animation_Trigger?
JFW_Vechicle_Animation_Trigger? [message #478553] Wed, 09 January 2013 18:16 Go to next message
roszek is currently offline  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 Go to previous messageGo to next message
Troll King is currently offline  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 #478586 is a reply to message #478579] Thu, 10 January 2013 22:57 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Pro-tip: Never leave any script field "empty" that's the fastest way to crash le possible (usually strings are the only ones that you can actually pull off leaving empty, but there is a way to leave a number blanked out, but I don't remember how I did it).

Re: JFW_Vechicle_Animation_Trigger? [message #478593 is a reply to message #478553] Fri, 11 January 2013 10:47 Go to previous messageGo to next message
Troll King is currently offline  Troll King
Messages: 56
Registered: June 2012
Location: Netherlands
Karma: 0
Recruit
Well my knowledge zone lays at coding not at LE so in coding terms you can leave it empty idk about LE...

Also Known As: Neijwiert
Re: JFW_Vechicle_Animation_Trigger? [message #478594 is a reply to message #478553] Fri, 11 January 2013 10:49 Go to previous message
danpaul88 is currently offline  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.

http://steamsignature.com/card/1/76561197975867233.png
Previous Topic: Building Proxys
Next Topic: Unmatched lines in terrain.
Goto Forum:
  


Current Time: Mon Nov 04 13:43:49 MST 2024

Total time taken to generate the page: 0.00656 seconds