Skip to content

Conversation

@Astralcircle
Copy link
Contributor

Because of this, through sentSpawn, for example, you can bypass custom sents limits

Because of this, through sentSpawn, for example, you can bypass custom sents limits
Comment on lines +350 to +352
if IsValid(entity) then
gamemode.Call("PlayerSpawnedSENT", self.player, entity)
end
Copy link
Member

Choose a reason for hiding this comment

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

This feels weird to me. Couldn't a custom entity decide that it's not :IsValid() until later?

Is that how PlayerSpawnedSENT works internally by default?

Copy link
Contributor

Choose a reason for hiding this comment

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

Never heard of that

Copy link
Contributor Author

@Astralcircle Astralcircle Aug 19, 2025

Choose a reason for hiding this comment

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

SpawnFunction can return invalid entity
image

@Astralcircle Astralcircle merged commit e073b90 into wiremod:master Aug 20, 2025
1 check failed
@Astralcircle Astralcircle deleted the spawnsent branch August 20, 2025 15:42
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.

3 participants