- Joined
- Jan 5, 2008
- Messages
- 145
I'm attempting to correct the placement of a doodad on the y axis. I'm deforming the terrain upward in order to make a completely smooth map. Problem is the deformation is causing the doodads to go into the ground. While this does make an interesting effect, I need to place Skulls and other doodads that will not look good. Any help is welcomed.
Currently, I have a point that is placed randomly on the map and stored as Waterpoint (This is used to determine if the doodad is in water) After that I place a unit called Y Axis. (I'm assuming that the unit will automatically be placed where the Y axis of the land is.) After that I change the Y Axis of the doodad to the Y axis of Unit. However the problem comes in that the unit is being placed into the ground as well.
I know there is logic errors but I just want to get the freaking doodad to be corrected on the Y Axis before I care about those
Trigger
Thanks
Currently, I have a point that is placed randomly on the map and stored as Waterpoint (This is used to determine if the doodad is in water) After that I place a unit called Y Axis. (I'm assuming that the unit will automatically be placed where the Y axis of the land is.) After that I change the Y Axis of the doodad to the Y axis of Unit. However the problem comes in that the unit is being placed into the ground as well.
I know there is logic errors but I just want to get the freaking doodad to be corrected on the Y Axis before I care about those
Trigger
-
Generation Props
- Events
- Conditions
-
Actions
- -------- FLOWERS/SHRUBS --------
-
For each (Integer B) from 1 to 1800, do (Actions)
-
Loop - Actions
- Set WaterPoint = (Random point in (Entire map))
- Unit - Create 1 Test Y for Neutral Passive at WaterPoint facing Default building facing degrees
- Set TestY = (Last created unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at WaterPoint) Equal to Icecrown Glacier - Dark Ice
- Then - Actions
-
Else - Actions
- -------- FLOATING ICE MUST BE IN WATER --------
- Set WaterPoint = (WaterPoint offset by ((X of WaterPoint), (Y of (Position of TestY))))
- Floating Text - Create floating text that reads ((String((Y of (Position of TestY)))) + Y) at WaterPoint with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
- Destructible - Create a Shrub at WaterPoint facing (Random angle) with scale (Random real number between 0.80 and 1.00) and variation 1
- Unit - Remove TestY from the game
-
If - Conditions
-
Loop - Actions
Thanks
Attachments
Last edited: