Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation command with direction awareness #337

Open
balloonpopper opened this issue Dec 7, 2022 · 1 comment
Open

Animation command with direction awareness #337

balloonpopper opened this issue Dec 7, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@balloonpopper
Copy link

Please make sure you talk to the community before creating an issue.

Is your feature request related to a problem? Please describe.
If you want to animate a "pick up" animation, there's no way that I can see to run a non-walk/idle/talk animation that knows which direction the player is facing.

Describe the solution you'd like
An anim_dir / anim_dir_block command that uses the facing direction to determine which animation to play. Alternatively, maybe an option on the existing anim command that is direction aware.
So the command might be "anim_dir current_player pickup" which would run the "pickup_down" animation if the player is facing down. A default action might be to just play the "pickup" animation if a matching "pickup_

" animation doesn't exist, but a "pickup" one does.

As per the alternatives command below, you currently need to anim_block, and then reset to idle manually. This also needs to be configured for every inventory item, and interactive game item. It would be good to have a way to set up default animations for each action (pickup/look/ etc) - similar to how the default actions command works at the moment.

Describe alternatives you've considered
:pickup
anim_block player grab
inventory_add r5_wrench
set_active r5_wrench false
anim player idle_down

Additional context
Add any other context or screenshots about the feature request here.

@balloonpopper balloonpopper added the enhancement New feature or request label Dec 7, 2022
@balloonpopper balloonpopper added this to the 4.1.0 milestone Dec 7, 2022
@balloonpopper
Copy link
Author

@StraToN - This will need some planning to work out the best way for it to fit in with the engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant