Blockland Forums > Modification Help
How does ObjectView.mountObject() work?
Munkey:
Thanks guys! At the moment it is giving me the error of being unable to find the node "headskin" but that is much better than an empty error. I will mess around with this and see if I can figure it out.
EDIT: Well, according to this function headSkin is not a node. I tried a couple of numbers and they didn't work either. Anyone have an idea of what is a node?
DOUBLE EDIT: Actually, $headSlot worked, but now the player is gone and only the hat is there.
Chrono:
Try showing all the player nodes after mounting the hat.
Munkey:
--- Quote from: Chrono on June 14, 2012, 02:08:31 PM ---Try showing all the player nodes after mounting the hat.
--- End quote ---
Doing this gives me an error of it not being able to find the object to unhide the nodes. It appears it replaces the player object before or something?
Munkey:
--- Quote ---1:23 PM - Mr. Wallet: for all I know, avatarpreview can only render one object at once and what you're trying to do is literally impossible
--- End quote ---
This would explain why it gets replaced by the hat, so I guess that it is impossible. Thanks for the help everyone, I guess I will just show previews of the hats.
Slicks555:
--- Quote from: Port on June 14, 2012, 02:01:52 AM ---I don't see you describing mountObject anywhere.
--- End quote ---
I didn't describe it because you don't need to use it to manipulate the model at all. I explained how to add a hat to a model, and I also gave usage examples of all the other functions in case they are needed.