For a begginer I suggest to edit actions in .MIS. You can copy the code of a walking enemy and edit coordinates. For example in DATA/MISIONES/SB/SB.MIS The .TOKEN ALEfusgordo120
---------------------------
Code down = walking
---------------------------
(
IR_A_PUNTO
[
.MODO ANDANDO
.XYZ
(
-1308.0 -1660.0 0
)
.ESC EXTERIOR
]
)
-----------------------------
code down = wait
------------------------------
(
ESPERAR
[
.TIEMPO 300.0
]
)
-------------------------------
code down = rotate to180ยบ
-------------------------------
(
ENCARARSE
[
.ANGULO 180.0
]
)
-------------------------------
For advanced actions is better use .gsc file I add and example down:
----------------------------
[
.NOMBRE NAME_EXAMPLE
.MIEMBROS
(
SOLDIER_001
)
.SCRIPTS
(
[
.NOMBRE SOLDIER_001
.CRISELBI
(
BICHO SOLDIER_001
)
.FLAGS_REACTIVIDAD
(
REACTIVO_VER_ENEMIGOS REACTIVO_OIR_SONIDOS
)
.SIMPLE 1.0
.ORDENES
(
! : LOOP
! IRAPOS
(
283,0 -1205,9 0,00 EXTERIOR
)NORMAL ANDANDO
! SET_ANGULO 180
! ESPERAR_TIEMPO 300
! IRAPOS
(
283,0 -1205,9 0,00 EXTERIOR
)NORMAL ANDANDO
! SET_ANGULO 180
! ESPERAR_TIEMPO 300
! GOTO LOOP
)
]
[
.NOMBRE 2SOLDIER_001
.CRISELBI
(
BICHO SOLDIER_001
)
.FLAGS_REACTIVIDAD
(
REACTIVO_VER_ENEMIGOS REACTIVO_OIR_SONIDOS
)
.SIMPLE 1.0
.ORDENES
(
! IRAPOS
(
283,0 -1205,9 0,00 EXTERIOR
)NORMAL ANDANDO
! SET_ANGULO 180
! DISPARA_MATA COMANDO
! ESPERAR_INFINITO
)
]
)
.SCRIPT_DE_GRUPO
[
.ORDENES
(
! LANZAR_SCRIPT SOLDIER_001
! ESPERAR_CONDICION
(
EVENTO ALAM
)
! LANZAR_SCRIPT 2SOLDIER_001
)
]
]
---------------------------------------
In upper example NAME_EXAMPLE is the name of this code.
soldier_001 is the name of the soldier
Inside of .SCripts .NOMBRE SOLDIER_001 must match with ! LANZAR_SCRIPT SOLDIER_001
Inside of .MIEMBROS all soldiers name must appear.
ALAM is the name of the event of alarm.
soldier_001 will do script SOLDIER_001. He goes to a coordinate, look at angle, wait, goes to a coordinate, look at angle, wait, repeat.
If ALAM he does 2SOLDIER_001; Goes to coordinate, look at angle, kill comando ( Green beret )
----------------------------
If you want add different actions I suggest to search soldiers doing the action you want to add and copy from other missions. now I will add some common actions code:
! SET_ESTADO_LOGICO ARRODILLADO = stand down ( middle position )
! SET_ESTADO_LOGICO AGACHADO = stand down ( full )
! : LOOP = start loop
! ESPERAR_TIEMPO 200 = wait
! PON_ANIMSECUENCIA FUMAR_PRINCIPIO = start smoking
! PON_ANIM_COSTUMBRISTA 800.0 FUMAR_MITAD = smoking 800 time
! PON_ANIMSECUENCIA FUMAR_FINAL = end smoking
! PON_ANIMSECUENCIA ECHAR_CHARLA = animation moving arm
! PON_ANIMSECUENCIA HABLAR_1 = speak
! PON_ANIMSECUENCIA HABLAR_2 = speak
! PON_ANIMSECUENCIA HABLAR_3 = speak
! PON_ANIMSECUENCIA HABLAR_4 = speak
! PON_ANIMSECUENCIA HABLAR_5 = speak
! PON_ANIMSECUENCIA BEBER_BOTELLA = drinking
! PON_ANIMSECUENCIA TAMBALEO_BORRACHO = beeing drunk
! PON_ANIM_COSTUMBRISTA 100.0 PERIODICO_A_CICLICA = reading newspaper
! PONTE_A_ESCANEAR = move triangle of vision
! PON_ANIM_COSTUMBRISTA 25.0 PERIODICO_B_CICLICA = reading newspaper
! DEJA_DE_ESCANEAR = stop moving triangle of vision
! GOTO LOOP = goes to start of loop
-------------------------
To make ALAM event you must create alarm code in .MIS you have to be sure paste all code I show down ( if it dont exist )
.REACTS
(
[
.ESC EXTERIOR = the name of the map
.ZONA EXTERIOR = the name of the zone
.EVENTO ALAM = the name of the event
]
)
.DAR_ALARMA_AL_VER_ALIADO 1
.ALARMAS
[
.LISTA_ALARMAS
(
[
.NOMBRE ALARMA01
.TIEMPO 500
]
)
]
Insideo of .ZONAS ( ):
[
.NOMBRE EXTERIOR = name of zone
.LISTA_MAPZON
(
[
.ESC EXTERIOR = name of map
.ZON EXTERIOR = name of zone
]
)
]
Inside of .ZONASFLOTANTES ( ):
[
.NOMBRE EXTERIOR = name of zone
.ESCENARIO EXTERIOR = name of map
.TODO_EL_ESCENARIO 1
]
---------------------
I think that is all. oh, and never copy = """""""" it is not the code, it is my explanation