Point region

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
Yes. Set a point variable to the position of the unit.
If you need the point to be within a specific region, you can always use a Boolean Comparison to check if the region contains your point.
 

bajaist

Member
Reaction score
4
My question was bad, i thought, if a unit is within region then if i could save units position in that region.
Something like, if there are two square rooms 1 and 2, of same size, and there is a region in room 1, of same size as room. So if unit is in corner of the room 1 and I move region (and unit with that region) to room 2, i want unit to be in corner of room 2.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
I think you could save the offset values of the unit's position from the center of the region. Then when you move the region, move them to the same offset position.
 

bajaist

Member
Reaction score
4
I couldn't manage doing it that way, but I did do it with distance and angle between center of region and unit. Thank for help :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top