TorqueScript Console Functions 9
From TDN
Section Index
1. OpenAL || 2. Debugging || 3. String Manipulation || 4. Networking || 5. Console || 6. Device I/O || 7. File I/O
8. Packages || 9. Objects || 10. Event Scheduling || 11. Datablocks || 12. Video / Texturing || 13. Special || 14. Resource Management
15. Scene || 16. Containers and Raycasts || 17. Editors || 18. Build || 19. Time || 20. GUIs || 21. Math
|
This quick reference guide was taken directly out of The Game Programmer's Guide to Torque by Edward Maurina. It's an outstanding resource - a must for anyone wanting to get serious about programming in Torque.
[edit] ObjectsAn object is in the class instance created by the engine or by scripts and available for access in the console. |
|
[edit] isObject( handle ) |
|
Purpose isObject(%player); |
|
[edit] nameToID( objectName ) |
|
Purpose nameToId(%player); |
|
[edit] strToPlayerName( playerName ) |
|
Purpose %name = stripTrailingSpaces( strToPlayerName( %name ) ); |
Section Index
1. OpenAL || 2. Debugging || 3. String Manipulation || 4. Networking || 5. Console || 6. Device I/O || 7. File I/O
8. Packages || 9. Objects || 10. Event Scheduling || 11. Datablocks || 12. Video / Texturing || 13. Special || 14. Resource Management
15. Scene || 16. Containers and Raycasts || 17. Editors || 18. Build || 19. Time || 20. GUIs || 21. Math



