Animation Questions - Play at random before spwaning?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City
Contact:

Animation Questions - Play at random before spwaning?

Post by vampire_lord »

This is a little complex, I searched first but the answer is not right there; this is what I want to do.

I am making some animations for conquest mode with scaled down Corelian Cruisers (the originals were too big to be medium transports), and I hope to find a decent Sentinel shuttle, they land on a designated area as in Empire at War, of course I still need to set them up so only Rebel or Imperial shuttles land depending on who's controlling the landing zone's CP (that's the first question), and second, most important, I don't need it necessarly to play each time units are spawn mostly at random but frequently enough and to land before spawning; assuming I make a 15 seconds animation it would need to begin playing so once it lands units spawn in time, the shuttle then leaves and might play the animation the next time units are about to spawn.

My scripting skills are not enough to figure out this mess, can someone help me? I am sure it will come in handy not only for me.

Thanks.
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: Animation Questions - Play at random before spwaning?

Post by RepSharpshooter »

Why don't you make a timer to play the animation on elapse? and then reset the timer and animation so it loops over and over. Or perhaps if you truly want something random, assign a random value to the timer (not sure how to do in lua, you could probably google it).
Post Reply