Staredit Network > Forums > SC2 Assistance > Topic: Fall Physics
Fall Physics
Oct 30 2011, 7:43 pm
By: Bolshevik09  

Oct 30 2011, 7:43 pm Bolshevik09 Post #1



Scenario: When a Marine gets a kill-streak of 5
Action: A banshee moves in to the Marines Position and drops a "care package"
Outcome: Trying to create a 'crate' at a z height and animate it falling to the ground
Problem: 'crate' will not create at any z height other than on the ground...


1st approach: (create unit and over .6 secs change it's z coor.)
--Create 1 'crate' at 'DZ' with z offset (ground height at 'DZ' + 3.0)
--wait .1 sec
--Set 'crate' height to 2.8
--wait .1 sec
--Set 'crate' height to 2.4
--wait .1 sec
--Set 'crate' height to 2.1
--wait .1 sec
--Set 'crate' height to 1.4
--wait .1 sec
--Set 'crate' height to .5
--wait .1 sec
--Set 'crate' height to 0
ERROR: 'crate' is created on ground and then moves to 2.8 etc


2nd approach: (create unit and over .6 secs move it's z coor.)
--Create 1 'crate' at 'DZ' with z offset (anything, tried all combinations)
--wait .1 sec
--move 'crate' to point (xyz) x&y of 'DZ', z= 2.8 (blend)
--wait .1 sec
--move 'crate' to point (xyz) x&y of 'DZ', z= 2.4 (blend)
--wait .1 sec
--move 'crate' to point (xyz) x&y of 'DZ', z= 2.1 (blend)
--etc...
ERROR: 'crate' is created on ground and never moves

1) Something is going wrong with creating unit at a custom z height
2) someone has mentioned using a behavior to set the units height when its created
3) would like the 'crate' to blend and look nice
4) Only way i've been able to create a 'crate' in the air is to have it's height set to 3 in the data editor...
Suggestions?



None.

Oct 30 2011, 7:50 pm Roy Post #2

An artist's depiction of an Extended Unit Death

I had an issue with this before. It seems that creating an initial offset doesn't work properly (it's likely that it's overridden by the Data Editor setting).

You can create the crate off-screen, set its height to 3.0, and then move it to where you want it to appear to spawn. This was the little trick I used to fix the issue when I ran into it.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:59 am]
NudeRaider -- *is
[05:17 am]
NudeRaider -- despite all its flaws the sound design its fantastic
[10:29 pm]
Oh_Man -- homeworld 3 = massive disappointment
[2024-5-14. : 10:05 am]
Moose -- ya
[2024-5-14. : 5:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
[2024-5-12. : 8:44 pm]
l)ark_ssj9kevin -- Hi Brusilov
[2024-5-12. : 4:35 pm]
O)FaRTy1billion[MM] -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
my server that was hosting it died
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
Please log in to shout.


Members Online: Roy