#Problem too long for title

1 messages · Page 1 of 1 (latest)

vocal rivet
#

If there’s anything I can add for specificity please let me know

drifting hill
#

You can either rely on get_tree().paused or create your own system for freezing the objects.
There's no single solution for this.

vocal rivet
#

Ok

vocal rivet
high cradle
#

you can always call the is_colliding() method on the raycast, this will tell you if the raycast collides with something it is intended for.
You can create a method that is called and check if is_colliding() is true when you want to use your stun.
For more information on Raycast, check out the official documentation.

drifting hill
vocal rivet
steel bane
#

maybe you should try to use state machine, do the navigation thing in one state, and the animation in another.

vocal rivet
#

there seems to be one small problem

vocal rivet
vocal rivet
drifting hill
high cradle
#

Add your Raycast3D to your character.

If you want to access the methods of a component such as the Raycast3D, then you must also address this component.

Here you are trying to access the methods of the Raycast without adding or addressing it.

I have written a function, there the raycast is addressed and it is queried whether the raycast collides with something, then I get the object with which I collide.

Choose what you need, either is_colliding() or get_collider(), then check if what comes back fits. With is_colliding it returns true or fals, with get_collider it returns null or the object you hit first with your raycast.

I just used both functions to show how to use them.

#

Without meaning any offense, I recommend doing a few tutorials first. You'll reach your goal faster.

vocal rivet