Problems when unit gets moved while starting construction of building

Exuro.

New Member
Reaction score
5
As title says:

I have a map where tree´s may be placed like this:


When a peasant constructs a building on top of himself. then he gets moved to the nearest available pathing(no things in the way) but that sometimes means trough doodads like tree´s, so he cant actually go out again without doing the same building trick.. how can i fix this so it will just say cant build there if he´s standing at the location the building is gonna be placed
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Remove the unit's pathing while he's making the building. After that add it back.
 

Exuro.

New Member
Reaction score
5
Ok, no one´s really answering this so im gonna explain my problem better:

Here is a picture of my peasant:
View attachment 26447
I do NOT want my peasant to be able to get from 1 to 2. (He cant walk trough).

Now, if a peasant then stands here:
View attachment 26448
And builds a building on top of himself then:

View attachment 26449

He automaticly gets pushed trough!

This kinda ruins my hole map with an exploit like this!

Im very desperate for fast help as i can do no testing at all with this kinda bug in it as players just use it to win.

Thanks a lot.. +Rep
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,497
Of course, you can't simply make those spots about one tree larger?
Which assumes though that you do not have any 1x1 structures...
And that all structures have the same size pathing map.
And that all corners have about the same size: one building + one peasant. Where "one peasant" is smaller than the structure, just enough for the worker.

And, a good way to pass time would be to read the forum rules on bumping.
 

neckface

terrain contest winner! :) dance contest loser. :(
Reaction score
34
easiest solution:

in your map can you have them summon buildings like undead instead of actively building like peasants? that would eliminate the problem...
 

Exuro.

New Member
Reaction score
5
Edit: Sorry bout the bumping so much.. i only have limited hours "free" from my GF.. so just trying to be productive in the time i can hehe!
guess ill have to take it up with the missy haha.. so sorry bout the bumping hehe

Acehart, the tree´s are destroyed by the peasant so he can custom make his area if your following me.. so that wont be possible.

Neckface:
Can i add that ability to a peasant?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,497
The "ability" to summon structures comes with the race setting of the worker.
The race of the building is of no importance there.

He will have the "summon" icon though, unless you change that...
 

Exuro.

New Member
Reaction score
5
so in theory i could just take the undead worker, change his model, and summon icon, and it would look like a peasant :D

hehe
 

Exuro.

New Member
Reaction score
5
I just tried using a undead worker and it doesnt work.. same thing happen!


I could perhaps fix it if i could somehow make it unavailable to build on top of the peasant.. like if the peasant is standing where the building is constructed then make it say "not possible" or something like that
 

Ryuu

I am back with Chocolate (:
Reaction score
64
Well I could make it, but I don't have WE open and my com is currently too laggy to handle WE. So I'll explain to you:

Just detect when a unit starts construction. Then detect if the structure is in 300 range (change this to your preference.. 300 is just a rough prediction) of the Peasant.
 

Exuro.

New Member
Reaction score
5
yes but the peasant gets moved as soon as the building is placed on ground. so i dont even think detecting the building when a unit starts construction is fast enough
 

Ryuu

I am back with Chocolate (:
Reaction score
64
Try it. You never know. :p

EDIT:
Or you could try pausing the unit when you started building construction?
 

Exuro.

New Member
Reaction score
5
hmm just started thinking! cant i make it so the peasant have to stand at a minimum of 1-2 or something from the building?

minimum acquisition range to 1 or something, would the unit then walk away to start the building?

EDIT: hmm that thing you suggested Ryuu, how do i make a trigger lige that? that checks if the building is within that range.?
 

Ryuu

I am back with Chocolate (:
Reaction score
64
Using the Unit Group, perhaps?
Handwritten:

Code:
Set tempGroup = Units within [COLOR="Red"][B][Range][/B][/COLOR] of [B][COLOR="Red"][Unit][/COLOR][/B]
 

Exuro.

New Member
Reaction score
5
Like this:

Code:
Set PeasantBStart = (Units within 1.00 of (Position of (Constructing structure)))


But shouldnt this be in a condition to like:

Condition
peasant within 1 of constructing structure equal true
Action:
Stop unit

or something like that heh
 

Ryuu

I am back with Chocolate (:
Reaction score
64
Oh yes, yes. But don't forget that leak:

Code:
(Position of (Constructing structure))
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top