#Can I use a premade Input action in my PlayerMovement script?

1 messages · Page 1 of 1 (latest)

sweet summit
#

I was following a tutorial for the new input system tho I found it kinda useless after a while. Following the tutorial I made a few Actions so I'd like to reuse them in my PlayerMovement script, Can I and if I can how?

sweet summit
sweet summit
#

this is the solution?

#

right

eager viper
#

Idk I have put as much work into finding an answer, as you have into trying to solve it, and asking a question.

#

Test it

sweet summit
#

what other info was I supposed to provide tho

#

you wouldnt get anything from me sending the movement script

#

cus I didnt try to do it myself

eager viper
#

First and foremost we expect you to try and solve it yourself, have you at all used Google to try and find a solution? Or did you stop watching the tutorial and come straight here?

sweet summit
#

but I think the problem is specific enough that google wouldn't help

eager viper
#

So then mention what you've tried and found so people trying to help you won't do double work. Clearly simply using Input Actions in a script isn't nearly as specific.

sweet summit
#

well I tried to make a reffrence in the script to it

#

but I had no clue what I was doing

#

so it didn't work

#

now I adding the already made script as a component tho it doesn't let you

#

actually no its not a script

#

Input Action

#

I started watching another tutorial

#

which probably works

#

but I wanted to try and re-use the input action I made

#

maybe it would've been less effort to make a new one

#

not like I did much anyways

#

I did now what the thing you sent me said, not sure now what

#

imma see if I am able to reffrence it in my script

#

and now im confused, well I shall do it the way the other tutorial intended

#

suppose its not worth it to reuse the Input Action