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

Add SDK.Player.IsHiding() #7

Closed
3 tasks done
victorpopkov opened this issue Oct 28, 2021 · 0 comments · Fixed by #14
Closed
3 tasks done

Add SDK.Player.IsHiding() #7

victorpopkov opened this issue Oct 28, 2021 · 0 comments · Fixed by #14
Assignees
Labels
enhancement New feature or request

Comments

@victorpopkov
Copy link
Member

  • I understand that if I ignore these instructions, my issue may be closed without review.
  • I have made sure that there are no similar opened issues.
  • I have made sure that the SDK version matches the latest release.

Is your feature request related to a problem? Please describe.

See dstmodders/mod-keep-following#8.

Describe the solution you'd like

The solution in dstmodders/mod-keep-following#8 looks good to me:

local function IsHiding(inst)
    return inst and (inst.sg and inst.sg:HasStateTag("hiding") or inst.HasTag and inst:HasTag("hiding"))
end

Describe alternatives you've considered

If applicable, add a clear and concise description of any alternative solutions or features you've considered.

Additional context

If applicable, add any other context or screenshots about the feature request here.

@victorpopkov victorpopkov added the enhancement New feature or request label Oct 28, 2021
@victorpopkov victorpopkov self-assigned this Dec 8, 2021
@victorpopkov victorpopkov linked a pull request Dec 8, 2021 that will close this issue
@victorpopkov victorpopkov added this to the Release v1.0.0 milestone Dec 8, 2021
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

Successfully merging a pull request may close this issue.

1 participant