MrFredo Posted January 29, 2010 Share Posted January 29, 2010 Hello, setElementParent not works if parent is player! my script (server): addEventHandler("onPlayerJoin",getRootElement(), function() local item = createElement("item") print(tostring(setElementParent(item,source))) -- print false! end ) Is this normal? Link to comment
50p Posted January 29, 2010 Share Posted January 29, 2010 Yes, I suppose so. It's because if this was possible you could set player to be parent of another player. For instance, sending message with outputChatBox to parent would send this message to its child therefore it wouldn't be "private" message any more. That's just my theory. What are you trying to do? There is probably different way to achieve it. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now