Game Development Community

Invisible Player

by Stefano Santo Sabato · in Torque 3D Professional · 03/22/2012 (1:14 pm) · 3 replies

I need to hidden the Player.

I've tried to call setHidden(true) but nothing.
Can someone help me?

#1
03/22/2012 (2:11 pm)
That disabled the player on the server.
Try this:

%player_name_or_ID.setAllMeshesHidden(true);

This will just stop the player from rendering.

Also when in doubt, .dump() on the player to look for available functions and also check the torqueScript.chm file in the documentation folder.
#2
03/22/2012 (4:52 pm)
Do you want to hide the player altogether or just make it invisible without removing it?

%object.startFade(%time, %delay, bool)

%object = id of the object to make invisible/visible
%time = duration to fade in/out (in ms)
%delay = how long before the fade begins (in ms) from when the command is issued
%bool = fade in/out. True makes it fade and go invisible, false does the reverse.
#3
03/23/2012 (3:46 am)
Thanks for all Steve and Michael!