T2-CPP/Mod Sources/TSExtension
Calvin Balke 4c716d90c8 Added a new TSTick call to TSExtension
This will allow running physics in TorqueScript with more accurate
timing.  Also added TSTick.cs which also enables InteriorInstance
serverside movement support(Will allow clients to see movement without
clientside patching).
2015-03-24 12:36:24 -07:00
..
TSExtension Added a new TSTick call to TSExtension 2015-03-24 12:36:24 -07:00
README.md Added sprintf 2014-08-16 03:45:03 -04:00
TSExtension.opensdf Experimental C++ API; added .deleteObject() 2014-08-18 15:22:13 -04:00
TSExtension.sln Cleaned up the repo and removed useless files 2014-08-05 18:06:55 -04:00
TSExtension.suo Experimental C++ API; added .deleteObject() 2014-08-18 15:22:13 -04:00

TSExtension

A general extension to the Torque Scripting language.

Additions

GrenadeProjectile.getVelocity()

This function did not exist before in Torque Script. It returns the current velocity vector of a GrenadeProjectile.

GrenadeProjectile.getPosition()

This function already existed to return the position of a GrenadeProjectile object but it is now much more accurate.

Player.isJetting()

This function did not exist before in Torque Script, it returns whether or not the Player is currently jetting.

Player.isJumping()

This function did not exist before in Torque Script, it returns whether or not the Player is currently jumping.

sprintf(format, ...)

This function did not exist before in Torque Script. It returns a formatted string according to format with all variable arguments up to a total of twenty filled in. Refer to C's sprintf for more information.

Note: Only %s should be used in the format as Torque Script passes all data around as strings.