Is it possible to make a script that makes projectile apply force by keybinding?

create Throw knife at ( position of ( last ability casting unit ) ) and apply 1000 force at ( facing angle of ( last ability casting unit ) in radians ) radians

Action:
Create projectile at position

The problem is the projectile not moving even i already input the force it just create in my unit not doing anything

Edit bodies
Z-index

Layer: Walls

Depth; 1

Fixedrotation
True

Bullet
True

Affected by Gravity
False

Allowsleep
False

Collides With

Units & Walls

1 Like

Try enabling ‘Run on client-side’ on the action, in case client-side predicted movement is enabled on your game. Or, disable client-side predicted movement.

1 Like

still not working and keybinding is already in the unit

Is the projectile’s body static, kinematic, or dynamic?

2 Likes

oof i think i made a mistake. thanks

1 Like

Please explain your mistake so others can learn from it. Thanks.

1 Like

Do you guess the reason why it didn’t work for him was that he was setting the projectile’s body to static or kinematic, not dynamic, judging from your conversation? I want to clarify it as minotalen said so.

1 Like