- Joined
- Mar 27, 2019
- Messages
- 56
Currently facing a problem with my idea, following situation;
I want to make a Wall-System that creates a vertical/horizontal Wall in between 2 Wall-Points, however if I start to build the second Wall and my Builder stands in between those 2 Wall-Points the created vertical/horizontal Wall will be displaced due to the collision of the unit, any way to prevent that behaviour so that the Wall gets placed in that exact location without displacement? Also without hiding the Builder because there could be more Units nearby doing various tasks.
Should be a straight line but the Wall got displaced due to the Builders collision standing there.
I want to make a Wall-System that creates a vertical/horizontal Wall in between 2 Wall-Points, however if I start to build the second Wall and my Builder stands in between those 2 Wall-Points the created vertical/horizontal Wall will be displaced due to the collision of the unit, any way to prevent that behaviour so that the Wall gets placed in that exact location without displacement? Also without hiding the Builder because there could be more Units nearby doing various tasks.
-
Build Wall
-
Events
- Unit - A unit Begins construction
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Wall
-
Actions
- Set VariableSet Temp_Point = (Position of (Constructing structure))
- Set VariableSet Temp_Point2 = (Temp_Point offset by (256.00, 0.00))
- Set VariableSet Temp_Point3 = (Temp_Point offset by (128.00, 0.00))
- Set VariableSet Temp_Group = (Units within 1.00 of Temp_Point2 matching ((Unit-type of (Matching unit)) Equal to Wall).)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Temp_Group) Greater than 0
-
Then - Actions
- Unit - Create 1 Wall (VDummy) for (Owner of (Triggering unit)) at Temp_Point3 facing Default building facing degrees
- -------- Just a Test --------
- Unit - Hide (Last created unit)
- Unit - Turn collision for (Last created unit) Off.
- Unit - Move (Last created unit) instantly to Temp_Point3
- Unit - Turn collision for (Last created unit) On.
- Unit - Unhide (Last created unit)
- Else - Actions
-
If - Conditions
- Custom script: call DestroyGroup(udg_Temp_Group)
- Custom script: call RemoveLocation(udg_Temp_Point)
- Custom script: call RemoveLocation(udg_Temp_Point2)
- Custom script: call RemoveLocation(udg_Temp_Point3)
-
Events