
ptowery
Joined: Aug 28, 2007
oify
|
Posted: Oct 11, 2012 05:16 PM
Msg. 1 of 6
Yeah, I've made an animation for the dropship getting into the dropoff position and one for the dropship leaving the dropoff position. I have the compiled jma files and the script with the command: (recording_play dropship1 #animation) How do I put the compiled animation into the game?
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Oct 11, 2012 05:27 PM
Msg. 2 of 6
You're using a command for recorded animations, yet what you're trying to use is a model_animation. If you want to use any of the recording_play commands, you need to make a Recorded Animation instead.
(custom_animation <unit> <animation_graph> <string> <boolean>) For the animation_graph, just put a string location to where the tag is, <hce>\tags\characters\cyborg\cyborg.model_animations becomes "characters\cyborg\cyborg" etc
The string is the name of the animation inside the model_animation.
|
|
|

ptowery
Joined: Aug 28, 2007
oify
|
Posted: Oct 12, 2012 01:52 AM
Msg. 3 of 6
Okay, I tested the animations in console and they do what their supposed to do, but they won't execute by script. (script dormant dropship (vehicle_load_magic drop1 CD-passengerL01 (ai_actors dsgrunt/drop1)) (custom_animation drop1 levels\a30\cds\cds dropoff 1) (unit_exit_vehicle drop1) (custom_animation drop1 levels\a30\cds\cds flyoff 1) ) and when using custom animations how do I eject units? Edited by ptowery on Oct 12, 2012 at 01:53 AM
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Oct 12, 2012 10:48 AM
Msg. 4 of 6
If you had read hs_doc info (unit_exit_vehicle <unit>) makes a unit exit its vehicle What you're trying to do is making your dropship get out of a vehicle its sitting in. What you want is (vehicle_unload <unit> <string>) makes units get out of a vehicle from the substring-specified seats (e.g. CD-passenger... empty string matches all seats) Eg, (vehicle_unload drop1 "") And why are you just loading people into one seat? (vehicle_load_magic <unit> <string> <object_list>) makes a list of units (named or by encounter) magically get into a vehicle, in the substring-specified seats (e.g. CD-passenger... empty string matches all seats) just place "" for the seat, and it will fill all the seats it can. Anyway, what part isn't executing by script? What you've shown is a dormant script, so are you waking it in another script?
|
|
|

ptowery
Joined: Aug 28, 2007
oify
|
Posted: Oct 12, 2012 02:47 PM
Msg. 5 of 6
Well the animations weren't executing, but the grunt encounter did go into passenger L01. It might be because I was using the wrong unit exit command. Will the script wait until the custom animation is finished before unloading the grunts? and I only have 1 grunt for now because my main focus is getting the animations to work. They work great in console in sapien and haloce. And thanks for the "" syntax. Okay I think the animation command is working. I just need to set up sleeps between them. thanks. Edited by ptowery on Oct 12, 2012 at 02:53 PMYeah, The animations work, but when I get to the part for the grunt to jump out, (in between animations) the dropship teleports back to it's spawn then teleports back and continues the animation in the time the grunt was supposed to jump out. (script dormant dropship (vehicle_load_magic drop1 "" (ai_actors dsgrunt/drop1)) (custom_animation drop1 levels\a30\cds\cds dropoff 1) (sleep 630) (vehicle_unload drop1 "") (sleep 120) (custom_animation drop1 levels\a30\cds\cds flyoff 1) ) Edited by ptowery on Oct 12, 2012 at 03:00 PMOkay everything's good, I switched to a static script and used sleep on animation. But for some reason the dropship's disappearing as if it has a bad bounding radius, but I checked and it's fine. Do you know why it's doing this? Edited by ptowery on Oct 12, 2012 at 03:34 PM
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Oct 12, 2012 05:04 PM
Msg. 6 of 6
Just as how you noted that it would teleport back to where it was, that's because it never really left; its still located at that location, it just has an animation showing it elsewhere.
|
|
|