Game Development Community

Newbie question

by Billy Am · in Torque Game Engine · 07/18/2005 (7:50 pm) · 1 replies

Hi guys
How can i call my player's name from inside the game ?? is there a global variable %player ?? thanks

billy

#1
07/21/2005 (1:40 am)
Hey fellow newbie :)

This is one of the things I do know, so I will help you out.
------------------------------------------------------------------------
For use in scripts:

null#.getName();

or

null#.getShapeName();
-------------------------------------------------------------------------
For use in the console:

echo(null#.getName());

or

echo(null#.getShapeName());
-------------------------------------------------------------------------
The null # is the number the floats on or above the player/object in the F11 editor mode.

And most scripts I have seen grab the null # automatically.