• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Problem with placing structures via trigger

Status
Not open for further replies.
Level 4
Joined
Feb 5, 2005
Messages
38
Hi everybody,

i'd like to drop some structures on the map via create unit. The location is calculated as an offset from a center tower (which is placed by the player).
The idea is that the player places the center tower, then a trigger will arise and drop 8 towers around it.
Because it is a TD map with very limited space the positioning of the "substructures" has to be very accurate.
The problem is they are always misplaced depending on which player built the central tower no matter how i adjust the offsets. (1 building square strafed/shifted)

Is there any way to place them right without creating individual offsets for each player? (which would result in 128 custom values which had to be determined by time eating testing, because I believe it has something to do with false rounding of the world coordinates and as a result the subtowers are misplaced when they are created by the trigger in a different quarter of the map)

thanks in advance,
regards

BlacKcuD
 
Last edited:
Level 8
Joined
Nov 9, 2008
Messages
502
You could try editing the build pathing for the dropped towers to make them buildable anywhere. Maybe that will help the accuracy of the drop. It's a shot in the dark.
 
Level 8
Joined
Nov 9, 2008
Messages
502
Maybe you could make the dropped towers units with no movement speed. That would place them at the right spot.

Just thought of something else...make the the collision size of the dropped towers smaller than one build square. Then any error in offset wouldn't interfere with the adjacent build square. (is it collisions that changes the placement size? dunno)
 
Level 4
Joined
Feb 5, 2005
Messages
38
Maybe you could make the dropped towers units with no movement speed. That would place them at the right spot.

Just thought of something else...make the the collision size of the dropped towers smaller than one build square. Then any error in offset wouldn't interfere with the adjacent build square. (is it collisions that changes the placement size? dunno)

i'll try that.

but as far as i know. the collision size of a building has nothing to do with its placement. it is only used for e.g. melee attackers arounding it (in what distance/radius)
 
Level 8
Joined
Nov 9, 2008
Messages
502
Off the top of my head i can't be sure but something like 'placement size'.
I like to know if that works.
 
Status
Not open for further replies.
Top