Skip to content

Conversation

DoopieWop
Copy link
Collaborator

This PR implements two target selectors for chat commands: "^" targets the command caller, while "@" targets whoever the command caller is looking at, this also works with ragdolled players (as well as many others as it relies on the "ixPlayer" member variable that is used in certain places, like the scanner in the default HL2RP schema)

The local function "ArgumentCheckStub" in core/sh_commands.lua now uses ix.command.FindPlayer (which this PR changes), instead of ix.util.FindPlayer (which has not been changed).
Documentation for the ix.command.FindPlayer function was updated accordingly.
The functionality and basic code is inspired by NutScript's implementation.

@DoopieWop DoopieWop changed the title Target selectors for ix.command.find player Target selectors for ix.command.FindPlayer Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant