T2-CPP/Mod Sources/TSExtension/README.md

26 lines
1,004 B
Markdown
Raw Permalink Normal View History

2014-08-16 04:00:18 +00:00
TSExtension
=====
A general extension to the Torque Scripting language.
Additions
====
2014-08-16 04:02:41 +00:00
#### GrenadeProjectile.getVelocity()
This function did not exist before in Torque Script. It returns the current velocity vector of a GrenadeProjectile.
2014-08-16 04:00:18 +00:00
2014-08-16 04:02:41 +00:00
#### 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.
2014-08-16 04:02:41 +00:00
#### Player.isJumping()
This function did not exist before in Torque Script, it returns whether or not the Player is currently jumping.
2014-08-16 07:45:03 +00:00
#### 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.