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.
[04:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
[2026-4-15. : 11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
Please log in to shout.


Members Online: DarkenedFantasies, Excalibur, JohnnyTheWolf