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

Update NetworkConcealPlayer.md #1133

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

dotmbf
Copy link

@dotmbf dotmbf commented Jun 20, 2024

Added more defined example and explanation of use in the native.

Copy link
Contributor

@4mmonium 4mmonium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, requested some changes, thanks!

local allPlayers = GetPlayers()

for _, player in ipairs(allPlayers) do
local playerInstance = GetPlayerInstance(player) -- You need to define this function
Copy link
Contributor

@4mmonium 4mmonium Jun 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need an instance for this native to execute. I believe that this was probably set up for other use cases, based on the condition statements.

All you need is a valid player index and that player needs to be networked, also known as a networked object or netObj.

Re-organize code and name third native parameter.
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.

None yet

2 participants