How to make a pulling script?

How to make a unit pulling script? I can make projectiles pull things onto them, i copy pasted the pulling script of E.F. To a testing game, converted the script into unit pulling and it doesn’t work

1 Like

Can you show what your script is?

1 Like

(cant send img cuz im on my bathroom)

                  Every frame

For all entities in all entities in the game

For all units in all units in the game

 If selected entity overlaps with selected unit = true AND if pulls of selected unit = true

    Apply force pull (currently 500) of selected unit on selected entity at an angle of angle beetween selected entity and selected unit

All of them have unit collisions enabled, altho they’re sensors. And the force isn’t working.

All of the units that are supposed to pull have pulling on.

1 Like

Ok, do you have client-side predicted movement enabled in your game?

1 Like