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.
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
Please log in to shout.


Members Online: Dem0n, Symmetry