Skip to content
This repository was archived by the owner on Dec 23, 2019. It is now read-only.

Conversation

@natrim
Copy link
Contributor

@natrim natrim commented Oct 10, 2012

No description provided.

@natrim
Copy link
Contributor Author

natrim commented Oct 10, 2012

like this?

@daranable
Copy link
Member

You still do not have a check to make sure you do not parent to a player or parenting a player to something.

That is problem because, if a player can be parented to say a hologram, that player can be teleported anywhere.

I'll ask Colonel, but we need to come up with a standard for error messages, I personally don't like the nil, "error message" approach it is far too easy to miss if something fails. But don't change the error message till I chat with colonel or he replys to this.

@ColonelThirtyTwo
Copy link
Member

Yea the nil, error msg is really bad and inconsistent. At the time, I didn't want functions to immediately fail if the entity is invalid, but looking back on it I think throwing errors on invalid entities would be better (and it would force people to correctly handle those cases)

@natrim
Copy link
Contributor Author

natrim commented Oct 11, 2012

@daranable - the player check is already there c8bc858

btw. maybe i should change parent() to return nil if the parent is invalid entity?

@daranable
Copy link
Member

Oh sorry, didn't see the first of the two commits.

@natrim
Copy link
Contributor Author

natrim commented Oct 13, 2012

trying to derp it together here https://github.com/natrim/Starfall/tree/library-constraints

@natrim natrim mentioned this pull request Oct 13, 2012
@natrim
Copy link
Contributor Author

natrim commented Oct 13, 2012

remade in #131

@natrim natrim closed this Oct 13, 2012
daranable pushed a commit to daranable/Starfall-Original that referenced this pull request Jan 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants