# Offset is being... odd.

#### Monsterous

What i want is a unit to keep moving past the target point.
Now, the easiest way i can think of is using an Offset, which i've done. However, the moving unit always moves to the side of the point. However, if i remove the offset, the moving unit goes exactly to the point.
Its strange, because the offset is directed towards that point, so surely the unit would go past the point, as the offset is directed on the unit to the point?

Code:
``Unit - Order (Last created unit) to ( Move targeting (ShipPoint offset by 50.0 towards (Point((X of ShipPoint), (Y of ShipPoint))))) (Replace Existing Orders)``
I've tried the angle between the two points, and other methods. The unit simply just goes to the offset, disregarding the position of the ship, the angle between two points, or the degree it is moving.

Basically, can anyone give me another way as to how to make a unit target a point, and go past it in the direction its going? Offsets arent working here for unknown reasons to me. Or if anyone can tell me why my action is wrong.

#### Frozenwind

##### System maker
I'm sorry to disapoint you, but the offset behaves as I expect it to behave

What goes wrong?
Basically, what you do is the following:

You order the unit to move to the point (allow me to call it X), with an offset of 50.0 towards the very same point X. However, how can a unit move to point X with an offset of 50.0 towards point X? To translate it:
Code:
``````Move unit to point X
Offset 50.0
Angle from point X to point X (will most-likely return 0 = east)``````
An angle between one point doesn't exist. An angle will always be determined by two different points, as it requires two dimensions (or more of course).
I hope the thing between code-tags will explain why it doesn't work.

(Small edit: Actually, it requires any amount of dimensions (in 1 dimension you simply only have 2 angles: left or right (0° and 1°? xD)), but it does require 2 or 3 points. 3 points would be a "math angle", with 2 lines drawn (AB and BC) giving the angle between those 2 lines. Whereas 2 points would be the angle from A to B - which is used in programming - which is now. Technically, this is the same as with 3 points, but one point is imaginary on the x-axis, having the same Y-coördinate as point A)

How to fix it?
I assume you want the ship to move straight over the point? Then I recommend you do this:
[not at home, so I typed it]
Code:
``Unit - Order (Last created unit) to ( Move targeting (TargetPoint offset by 50.0 towards (Angle from (Position of (Last Created unit)) to (TargetPoint)))) (Replace Existing Orders)``

The (Point(X,Y)) function
One more thing, rather off-topic:
Code:
``Unit - Order (Last created unit) to ( Move targeting (ShipPoint offset by 50.0 towards ([COLOR="Green"]Point((X of ShipPoint), (Y of ShipPoint))[/COLOR]))) (Replace Existing Orders)``
The green part equals the following:
Code:
``(ShipPoint)``

#### Monsterous

Very informative.
However, if what you say is true, why wouldnt this work?
Code:
``Unit - Order (Last created unit) to ( Move targeting ((Position of Your Ship) offset by 30.0 towards (Angle from (Position of (Last created unit)) to (Position of Your Ship)) degrees)) (Replace Existing Orders)``
I tried this, this contains 2 different points, yet the unit goes to the offset, not in a line towards the ship and going past it.
Unless im reading it wrong, the unit should go to an offset of 30 at an angle of the direction of the unit to the ship, which would be its normal movement line, thus it should just move towards the point, and go on its offset.

#### Frozenwind

##### System maker
Few questions:
- Is the "last created unit" on top of the ship (cos then the 2 different points are the same)? --> this will break his "normal movement line" and force him to go to "0°" = east.
- When is the function called? Since if you call it before it passes the ship (makes him move over) and after he passes the ship (makes him move over again - which is backwards), he'll be stacked on top of the ship.

#### Monsterous

Its a seperate unit firing at the ship, so the unit will move towards the ship.
The function is called instantly as the unit is made.

#### Frozenwind

##### System maker
Then it should work, unless:

- Your last created unit isn't created yet (impossible as there always is a last created unit - unless it's your first call - besides that, it responds)

If not.. Mind posting your trigger?

#### Monsterous

Amazingly, it now works. I had to recreate it as i had deleted it previously, tested it, and amazingly, it now works even though i did the same thing as i always had.

I thank you for help, and holding my hand trying to find a way to fix my problem.
I've +rep you, and i'd +rep again for your tremendous amount of help, but unfortunately i cant yet

General chit-chat
Help Users
• No one is chatting at the moment.
• The Helper:
check out this place apparently it is the best roommate site out there roommates.com lol
• Varine:
The homeless people reminded me of New York
• Varine:
I'll check it out, my lease expires in like a few months so I need to figure something out.
• Varine:
I tried to open a food truck in Sandpoint a few years ago but the city said no, then like two years later they passed new laws to encourage it and gave them all fucking tax breaks and shit. And at that point I didn't have enough money to go buy one so I was way too late to the game once other cities realized they could just bring their existing truck there, or sell their brick and mortar.
• Varine:
I do like food trucks though, they're way more fun than restaurants and usually I also get some of that tip money there.
• Varine:
Restaurants are really hard if you don't have a back up source of income to fund them sometimes, in my experience most owners either got really really lucky, had existing money that allowed them to buy an already successful one, or they have family money to fall back on for loans. It's few and far between to see very inspiring success stories where the person actually got it through hard work and perseverance. I thought about opening one lots and I always just end up not thinking it'll work. I would much rather just find someone that has that money and go work for them
• The Helper:
i am not talking about opening a brick and mortar I am talking about food trucks though I have seen some brick and mortar mexican places open up during covid that are doing good because there food is awesome!
• The Helper:
Food trucks are killing out here because Bars cannot open unless they sell food and the governor ok'd the use of a food truck in front as serving food
• The Helper:
Just not enough food trucks
• The Helper:
a buddy of mine just opened up a food truck and he is killing it but he is a great cook and has awesome food right in the middle of the pandemic too food trucks are immune to pandemic because they are take out in Texas you will always be able to get take out or delivery
• The Helper:
He is in the different food facebook groups in houston and posts videos of him making his food
• The Helper:
he is killing it
• jonas:
@Varine with the restaurants, there surely is a lot of luck and hard work but most restaurants fail because they suck. Flair isn't right, economics not well thought through, food is mediocre or sucks, location is bad, etc. If you're thinking about opening one, make sure you're looking at the stories of those that would be playing at your level, don't let your hopes be dragged down by all the subpar restaurants out there.
• jonas:
I'm a bit worried about the future of data science, there's an influx of incompetent people hired by incompetent managers, that can't last. But I'm sure smart data scientists will always be useful and hireable. Same as smart security people.
• jonas:
My sister in law worked in a vegan food truck, the owners were also making a killing, added several trucks and opened two restaurants over 5 years
• Ghan:
The CompTIA stuff is pretty much crap unfortunately. The places that ask for those low-level certs aren't likely places you want to work. For IT you really want a degree, but in the meantime you need to figure out some way to learn the skills. Cybersecurity is really hot right now so competition is fierce.
• tom_mai78101:
I realized I don't have anything much to say, other than "Good luck!". Compared to other places, I'm just very lucky we didn't have a lot of surges of cases coming in.
• The Helper:
My daughter just got back from school at Georgetown TX, outside of Austin and said there were 100 cases in the last week but she also said nobody was wearing a mask anywhere so people mask up and stay safe!
+2
• thewrongvine:
happy thanksgiving folks!
+1
• Ralle:
PLOOB
• Varine:
@Gyah Yeah I figured they aren't particularly valuable, but they'll at the least act as a baseline for some entry level work somewhere.
• Varine:
I now see how horribly I spelled @Ghan
• Varine: