|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
نويسنده |
پيغام |
Kochol متخصص ساخت بازی
تاريخ عضويت: شنبه 1 مرداد 1384 تعداد ارسالها: 298
جمعه 25 شهريور 1384 - 21:59 |
|
|
Torque Console Script Command Reference
activateDirectInput()
Parameters: none
Return: nothing
Description: Activates direct input device polling.
Usage: activateDirectInput();
activateKeyboard()
Parameters: none
Return: numeric 1 = success, 0 = fail.
Description: Enables DirectInput polling of the keyboard.
Usage: %result = activateKeyboard();
activatePackage(name)
Parameters: name String containing the name of the package.
Return: nothing
Description: Tells Torque to start using the package specified by name.
Usage: activatePackage(Show);
AddCardProfile (vendor, renderer, safeMode, lockArray, subImage, fogTexture,
noEnvColor, clipHigh, deleteContext, texCompress, interiorLock, skipFirstFog,
only16, noArraysAlpha, profile)
Parameters: vendor Name of card vendor.
renderer Name of renderer.
safeMode true or false
lockArray true or false
subImage true or false
fogTexture true or false
noEnvColor true or false
clipHigh true or false
deleteContext true or false
texCompress true or false
interiorLock true or false
skipFirstFog true or false
only16 true or false
noArraysAlpha true or false
profile Name of profile.
Return: nothing
Description: Creates a profile of features of a video card for later reference.
Usage: AddCardProfile(%vendor, %renderer, true, true, true, true, true, false,
false, true, true, false, false, false,"")
addMaterialMapping( material, sound, color)
Parameters: material Name string to identify the material.
sound Name of sound profile to attach to material.
color Color specification to attach to material.
Return: nothing
Description: Adds sound and dust color to specified material.
Usage: addMaterialMapping("sand", "sound:0", "color:0.3 0.3 0.5 0.4 0.0" );
AddOSCardProfile(vendor,renderer,allowOpenGL,allowD3D,preferOpenGL)
Parameters: vendor Name of card vendor.
Renderer Name of renderer.
AllowOpenGL true or false
allowD3D true or false
preferOpenGL true or false
Return: nothing
Description: Stores certain aspects of a video card for later usage.
Usage: AddOSCardProfile(%vendor,%renderer,true,true,true);
AddTaggedString (string)
Parameters: string Normal string to be added.
Return: numeric The tag.
Description: Adds a string to the tagged string list (NetStringTable).
Usage: %tagname = AddTaggedString(%name);
AiConnect(id)
Parameters: id ID reference number (0 to 20) of the AI bot.
Return: numeric New object handle.
Description: Creates a new uncontrolled AI connection. The AI is treated the same as a player.
Usage: AiConnect(1);
alGetString(ALenum)
Parameters: string The enum string. Choices:
"AL_VENDOR"
"AL_VERSION"
"AL_RENDERER"
"AL_EXTENSIONS"
Return: string
Description: Obtains the string specified.
Usage: %vendor = alGetString("AL_VENDOR");
alListener3f(ALenum, [ "x y z" ] | [ x,y,z ])
Parameters: ALenum The enum string. Choices:
"AL_VELOCITY"
"AL_POSITION"
"AL_DIRECTION"
"x y z" The string contains a tuple indicating where to place the
enumed property in 3D world space.
x,y,z (alternative) If "x y z" isn't used, then this is a tuple indicating
where to place the audio object in 3D world space. Note: These
are three numerics, not a string!
Return: nothing
Description: Sets the ALenum to value for the listener (the player, who "hears" a sound).
Usage: alListener3f("AL_GAIN_LINEAR", $pref::Audio::masterVolume );
AllowConnections(switch)
Parameters: switch 1 (or true) = enable, 0 (or false) = disable.
Return: nothing
Description: Enables and disables connections to the game server.
Usage: AllowConnections(true);
alxCreateSource( { profile, [x,y,z] } | { description, filename, [x,y,z] } )
Parameters: profile Descriptor string.
x,y,z If profile is used, this is a tuple indicating where to place the
audio object. Note: These are three numerics, not a string!
description (alternative) If profile isn't used, then this is an audio object
description string.
filename If description is used, then this string specifies the audio file to
use for the sound.
x,y,z If description is used, this is a tuple indicating where to place
the audio object. Note: These are three numerics, not a string!
Return: numeric Handle to audio object.
Description: Loads an audio source file into memory, and initializes it for use.
Usage: $handle =alxCreateSource("Audio0","~/data/sounds/test.wav");
|
_________________ Kochol Game Engine
[img]http://barnamenevis.org/forum/image.php?type=sigpic&userid=6875&dateline=1258101798[/img] |
|
بازگشت به بالا |
|
|
|
|
|
|
|
نويسنده |
پيغام |
ايكس اكسز کاربر جدید
تاريخ عضويت: 5 شنبه 22 بهمن 1383 تعداد ارسالها: 9
2 شنبه 9 آبان 1384 - 22:26 |
|
بازگشت به بالا |
|
|
صفحه 3 از 8 |
تمام ساعات و تاريخها بر حسب 3.5+ ساعت گرينويچ مي باشد برو به صفحه قبلي 1, 2, 3, 4, 5, 6, 7, 8 بعدي
|
|
شما نمي توانيد در اين انجمن نامه ارسال كنيد. شما نمي توانيد به موضوعات اين انجمن پاسخ دهيد شما نمي توانيد نامه هاي ارسالي خود را در اين انجمن ويرايش كنيد شما نمي توانيد نامه هاي ارسالي خود را در اين انجمن حذف كنيد شما نمي توانيد در نظر سنجي هاي اين انجمن شركت كنيد
|
|
|