TORQUE脚本的全局变量参考手册(List of script globals linked to engine code)

Note:this resource is a complete list of all the global script variables accessed by the engine code, along with definitions. The definitions are a work in progress.

最近忙了一段时间,周日回来后搞了个TORQUE的研究社区网站:www.torquecn.com ,觉得有必要让其他朋友一起发表和搜集资料并一起学习TORUQE,这个社区提供下载,翻译文档,和开发日志,只要是会员就可以发表自己的学习日志,真正做到一起学习!呵呵,重要的还是找个地方把平时搜集的资料保存起来,不然太浪费了.而且现在可以大家一起搜集,是不是周到一点呀!呵呵.废话不说,请各位热心的朋友多多共享资料呀! 首先还是到www.torquecn.com 注册登陆啦.
另外要说的是,虽然有了www.torquecn.com,但是CSDN的"EddieTorque的专栏"还是不变的,毕竟我们是从这里开始的.

下面是TORQUE们整理出来完整的TORQUE脚本的全局变量,有些有变量的说明,有些的还没有,继续完善中,如果您清楚那些没有说明的变量,请留言共享出来,大家一起进步,我只做了前面几个变量的翻译,以后会继续的.

$Game::argc
命令行参数的数量,包括程序的名称.

$Game::argv
命令行参数,这个是个array列表变量,索引从0到$Game::argc-1

$GameBase::boundingBox
通过设置这个全局变量,可以显示或者隐藏bounding boxes用于调试
备注:bounding boxes是模型附带绑定的一个BOX,用于模型物理空间的和法线方向定位.

$Camera::movementSpeed
这个变量存储free-flying摄像机的移动速度.

$Client::MissionFile
Name of the current mission file; used when creating a name for the lighting (.ml) file.
当前任务的文件的名称,

$Con::Prompt
控制器的命令提示符号.

$Con::WindowTitle,
控制器窗口的名称(只用于win32 和mac系统)

$AnisotropySupported

$Audio::numActiveLoopingStreams


$Audio::numActiveStreams

$Audio::numCulledLoopingStreams

$Audio::numInactiveLoopingStreams

$Audio::numLoopingStreams

$Audio::numNullActiveStreams

$Audio::numOpenHandles

$Audio::numOpenLoopingHandles

$Collision::boxSize

$Collision::depthRender

$Collision::depthSort

$Collision::renderAlways

$Collision::testClippedPolyList

$Collision::testDepthSortList

$Collision::testExtrudedPolyList

$Collision::testPolytope

$DamageType::Ground

$DamageType::Impact

$DamageType::Water

$DbgSetCursorWatch

$Demo::playbackTime

$DisableSystemProfiling, win32 and mac only

$DocRoot

$EventModifier::ALT
$EventModifier::CTRL
$EventModifier::LALT
$EventModifier::LCTRL
$EventModifier::LSHIFT
$EventModifier::RALT
$EventModifier::RCTRL
$EventModifier::RSHIFT
$EventModifier::SHIFT

$FP::DisableAsserts

$FogCoordSupported

$GUI::clipboardFile

$GUI::fontCacheDirectory

$InspectingObject

$Inspector

$Interior::DontRestrictOutside

$Interior::insideDistanceFalloff

$Item::maxLatencyTicks

$Item::maxWarpTicks

$Item::minWarpTicks

$MasterServerAddress

$ModRoot

$OpenGL::primCount array, indices 0 through 3, win32 only

$OpenGL::triCount array, indices 0 through 3, win32 only

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值