- Joined
- Aug 3, 2004
- Messages
- 2,906
I got this script from here: http://www.hiveworkshop.com/forums/...88/?prev=search=birth%20animation&d=list&r=20
It works great for any unit except when upgrading: ie town hall to a keep, etc. I've tried switching it to triggering unit, entering unit, and having a second script just for those structures. Ideas?
It works great for any unit except when upgrading: ie town hall to a keep, etc. I've tried switching it to triggering unit, entering unit, and having a second script just for those structures. Ideas?
-
Birth Normal
-
Events
-
Unit - A unit Begins construction
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Constructing structure)) Equal to Orifice
-
(Unit-type of (Constructing structure)) Equal to Colony
-
(Unit-type of (Constructing structure)) Equal to Hive
-
(Unit-type of (Constructing structure)) Equal to Cell
-
(Unit-type of (Constructing structure)) Equal to Nest
-
(Unit-type of (Constructing structure)) Equal to Chamber
-
(Unit-type of (Constructing structure)) Equal to Brooder
-
(Unit-type of (Constructing structure)) Equal to Destor
-
-
-
-
Actions
-
Custom script: local effect udg_SeedSFX
-
Custom script: local unit udg_SeedBuilding
-
Set SeedBuilding = (Constructing structure)
-
Special Effect - Create a special effect attached to the origin of (Constructing structure) using zbtex.mdx
-
Set SeedSFX = (Last created special effect)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Constructing structure)) Equal to Orifice
-
-
Then - Actions
-
Wait 45.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Constructing structure)) Equal to Colony
-
-
Then - Actions
-
Wait 34.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Constructing structure)) Equal to Hive
-
-
Then - Actions
-
Wait 34.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Constructing structure)) Equal to Cell
-
-
Then - Actions
-
Wait 14.50 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Constructing structure)) Equal to Nest
-
-
Then - Actions
-
Wait 20.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Constructing structure)) Equal to Chamber
-
-
Then - Actions
-
Wait 9.50 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Constructing structure)) Equal to Brooder
-
-
Then - Actions
-
Wait 25.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Constructing structure)) Equal to Destor
-
-
Then - Actions
-
Wait 13.00 seconds
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Constructing structure) is alive) Equal to True
-
-
Then - Actions
-
Special Effect - Destroy SeedSFX
-
-
Else - Actions
-
Do nothing
-
-
-
-