Login  Register
 



Post new topicReply to topic
 
Author Message
 PostPosted: 09 Apr, 2012 
 
User avatar

Joined: 22 Apr, 2011
Posts: 41
Location: France
Offline
Hi,
I have made an UEF factory and an animation for this one.
I want to run the animation before the factory starting to construct (unfolding the arms before building a unit) but it does not work.

I try to launch the animation like this:
Code:
AnimationBuild = '/mods/UnitPack/Units/UEF002/UEF002_Abuild.sca',


However i know that my animation file working good because i can run it with this:
Code:
AnimationFinishBuildLand = '/mods/UnitPack/Units/UEF002/UEF002_Abuild.sca',


So what's going wrong? That i want to do is only possible with a .sca file ?

Thank you!

_________________
Oh yeah !

My supcom website dedicated to modding: http://suprememodeur.dyndns.org


Top
 Profile  
 PostPosted: 12 Apr, 2012 
 
User avatar

Joined: 22 Apr, 2011
Posts: 41
Location: France
Offline
I have find a way to bypass my problem with some lua script.

I think it's not really possible to play an animation before the factory start to build so i decided to play my animation (with a few modifications) just after his construction.

it's not really the result i expected to when i was thinking to doing this unit but it's working... :roll:

PS: if anybody knows why
Quote:
AnimationBuild = '/mods/UnitPack/Units/UEF002/UEF002_Abuild.sca',
do not work, tel me. (even if you need to necropost this thread :evil: )

thank you

_________________
Oh yeah !

My supcom website dedicated to modding: http://suprememodeur.dyndns.org


Top
 Profile  
 PostPosted: 12 Apr, 2012 
 

Joined: 26 Feb, 2009
Posts: 2996
Offline
it doesnt work because this is fired from the unit that is being built and not the unit that is building :)

_________________
Domino.
______________


Top
 Profile  
 PostPosted: 12 Apr, 2012 
 
User avatar

Joined: 26 Mar, 2007
Posts: 5075
Location: California, United States
Offline
it is possible, Raevn(i think that is his name) figured it out for his TA mod a long time ago, the alpha/beta might still be on the forums somewhere, you might be able to take a look in there.

other options include hooking the OnStartBuild function to pause the building and play the animation then resume construction when the animation is finished.

_________________
{◕ ◡ ◕}
Image


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic



Quick Tools

Search for:
Jump to:  

© 2002-2010 Gas Powered Games Corp. All Rights Reserved. Gas Powered Games is the exclusive trademark of Gas Powered Games Corp.
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
 
Home| Games | Company | News & Press | Support
  Terms of Use   |    Copyright Information   |    Privacy Policy