$
is used to
mark a GLOBAL VARIABLE是用来标记一个全局变量
The stuff in
the game needs a identity for registration to can handle with
it在游戏中的东西需要一个能够处理登记与它的身份
The identities
can be variable, for exemble by calculating
something的身份,可变量,通过计算的东西exemble
The global
variable is builded with the $ sign and aa letter or a word or a
number or both全局变量是千秋的$符号和AA字母或一个字或一个数字或两者
But using
global variables in Cleo scripts can cause heavy bugs or
crashs但是,使用克里奥脚本全局变量可以造成严重错误或crashs
only
$PLAYER_CHAR, $PLAYER_ACTOR, $ONMISSION are
valid只有PLAYER_CHAR,$ PLAYER_ACTOR,$
ONMISSION是有效的
global, local,
whats that ?全球,地区,whats呢?
Global
variables are used in the main.scm to communicate between different
threads全局变量用于main.scm在不同的线程之间的通信
Local
variables are also used in the main.scm but they can not
communicate between different
threads局部变量也用于main.scm但他们却无法不同的线程之间的通信
You can create
a car with a LOCAL variable in a thread as [email protected] and also with [email protected] in
an other thread of main.scm您可以创建在一个为1 @线程局部变量的汽车,并与1
@在一个main.scm其他线程
[email protected] =
create_car 1 @ = create_car
You have then
2 different cars, commanded from 2 different
threads然后,您有两个不同的车,从2个不同的线程指挥
You can create
a car with GLOBAL variable in a thread but dont use again the same
global to create it again in an other
thread.您可以创建一个带有全局变量在线程但是dont再次使用相同的全局来创建另一个线程在再次汽车。
$mycar5 =
create_car $ mycar5 = create_car
But you can
command the car from an other thread of the main.scm by using a
GLOBAL variable但是你可以命令从一个main.scm其他线程使用一个全局变量的车
At
least:至少:
The GLOBAL
variables are storable, the LOCAL variables
not全局变量可存储的不是局部变量
But dont using
global variables in Cleo scripts because they can cause heavy bugs
or crashs但是dont脚本中使用克里奥全局变量,因为它们可以造成严重错误或crashs
only
$PLAYER_CHAR, $PLAYER_ACTOR, $ONMISSION are
valid只有PLAYER_CHAR,$ PLAYER_ACTOR,$
ONMISSION是有效的
# #
marks the
connected entry as filename of a loadable
model标记为可加载的文件名连入模型
CODE 代码 |
0247: load_model #BMYCG 0247:load_model#BMYCG 0247: load_model #HMYCM 0247:load_model#HMYCM 0247: load_model #SWATVAN 0247:load_model#SWATVAN 0247: load_model #M4 0247:load_model#用m4 0247: load_model #COLT45 0247:load_model#COLT45 |
For Cleo can
only be used models which are defined in vehicles.ide, peds.ide or
default.ide对于克莱奥只能用于这是vehicles.ide,peds.ide或default.ide定义模型
Other models
needs to use their ID number其他型号需要使用身份证号码
‘…’
‘…’
short string
to insert letters or numbers like GXT entrynames or names of
special IPL entries短字符串插入字母或类似GXT
entrynames或特殊彩光作品名称号码
CODE 代码 |
03A4: name_thread ‘MAIN’ 03A4:name_thread’主’ 0917: audio_zone ‘BEACH’ enable_sound 0 0917:audio_zone’海滩’enable_sound 0 00BA: show_text_styled GXT ‘INTRO_1’ time 1000 style 2 00BA:show_text_styled GXT’INTRO_1时间1000风格2 0299: activate_garage ‘MODLAST’ 0299:activate_garage’MODLAST’ 07FB: set_interior ‘GYM1’ access 1 // Ganton Gym 07FB:set_interior’GYM1’进入1 / /甘顿体育馆 0390: load_txd_dictionary ‘LD_BEAT’ 0390:load_txd_dictionary’LD_BEAT’ 076C: set_zone ‘GAN1’ gang 1 density_to 25 076C:set_zone’GAN1’刚1 density_to 25 |
“…”
“…”
long string to
insert letters or numbers like animation- and IFP file names,
bodypart names, particel names,
etc…长字符串插入字母或数字等动画和因卡塔自由党的文件名,正文部分名称,particel姓名等..
CODE 代码 |
087B: set_player $PLAYER_CHAR clothes_texture “PLAYER_FACE” model “HEAD” body_part 1 087B:set_player $ PLAYER_CHAR clothes_texture“PLAYER_FACE”模型“人头”body_part 1 038F: load_texture “DOWN” as 1 // Load dictionary with 0390 first 038F:load_texture“向下”的1 / /加载字典与0390第一 0605: actor -1 perform_animation_sequence “DAN_LOOP_A” IFP_file “DANCING” 4.0 loop 1 0 0 0 time -1 // versionA 0605:演员-1 perform_animation_sequence“DAN_LOOP_A”IFP_file“跳舞”4.0环路1 0 0 0时-1 / / versionA 0674: set_car_model #GREENWOO numberplate “GROVE4L_” 0674:set_car_model#GREENWOO numberplate“GROVE4L_” 0245: set_actor [email protected] walk_style_to “GANG2” 0245:set_actor 5 @ walk_style_to“刚2” 064B: [email protected] = create_particle “EXPLOSION_MOLOTOV” at 2010.0 -1610.0 16.5 type 1 064B:25 @ = create_particle“EXPLOSION_MOLOTOV于2010.0 -1610.0 16.5 1型” |
To set entries
of strings equal to variable names must be used special opcodes and
extended variable
signs要设置相同的字符串变量名的参赛作品必须使用的特殊操作码和扩展可变标志
05AA:
05AA:
05A9:
05A9:
06D2:
06D2:
06D1:
06D1:
furthermore
can strings also replaced with variables by using extended variable
signs此外还可以用变量替换使用扩展可变标志串
@s @秒
–
local-string-variable -本地字符串变量
CODE 代码 | ||||
05AA: [email protected] = 新加坡元
@v @ v
v$ v $
|

Source: New feed