Author Topic: Looking to modify the invisibility watches, How do I make a mounted model invsi?  (Read 1245 times)

I have a model ready and I have code ready to be modified but all I need to know is how do I get the model to

  • Render in thirdpersonp
  • Turn invisible along with the player
As well as that, how do I modify the invisibility watches actual variables?

There may be better ways to accomplish this, I don't work with models too often. But you can just mount and unmount the image to the player.


Code: [Select]
%player.updateArm(itemImageHere);
%player.mountImage(itemImageHere, slot);
The slot is the node to attach the image to, I believe 0 is the hand.

Same way to unmount, but you just target the slot I believe:
Code: [Select]
%player.updateArm();
%player.unmountImage(slot);
Slot here is whatever node you mounted it to?

This is untested and just from memory, someone might want to verify all this.

Oh stuff I didnt even think of that.

The watches have different first-person and third-person offsets (position from the camera and hand) The watches are invisible in third person because the third person offset is thousands of metres below the ground. The watches used the state system for some controls (charging ticks, readying) which unmounting the image would stop, although that'll work for different cases.

You can see the first/third person effect in some items like the Print Gun and Wrench - in first person, they don't move at all when walking or change position when fired, as compared to the Gun which bobs up and down and shifts when firing, moving bricks, jumping.