Còn đây là code của tui
Model_battle
type viet_horse_archer
skeleton fs_s1_hc_archer, fs_hc_swordsman
indiv_range 40
texture romans_julii, xgm/Data/models_unit/nvn/textures/DVheavy horse archer.tga
texture greek_cities, xgm/Data/models_unit/nvn/textures/DVheavy horse archer.tga
texture dacia, xgm/Data/models_unit/nvn/textures/DVheavy horse archer.tga
model_flexi xgm/data/models_unit/nvn/DV heavy horse archer.cas, max
model_sprite romans_julii, 60.0, xgm/data/sprites/bactrian_horse_archers_sprite.spr
model_sprite greek_cities, 60.0, xgm/data/sprites/dacia_bactrian_horse_archers_sprite.spr
model_sprite dacia, 60.0, xgm/data/sprites/dacia_bactrian_horse_archers_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
descr_unit
type viet horse archer
dictionary viet_horse_archer
category cavalry
class missile
voice_type Medium_1
soldier viet_horse_archer, 35, 0, 1
mount heavy horse
mount_effect elephant -8, camel -4
attributes sea_faring, hide_forest, hardy, cantabrian_circle
formation 1.5, 4, 3, 6, 4, square
stat_health 1, 4 ; Elite HA
stat_pri 7, 1, arrow, 150, 35, missile, archery, piercing, none, 25 ,1.0 ; Ranged
stat_pri_attr no
stat_sec 8, 4, no, 0, 0, melee, blade, piercing, sword, 25 ,0.8 ; Cavalry
stat_sec_attr ap
stat_pri_armour 9, 4, 0, metal
stat_sec_armour 0, 1, flesh
stat_heat 4
stat_ground 0, -2, -4, 2
stat_mental 13, normal, trained
stat_charge_dist 60 ; Skirmish Cavalry
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 1020, 500, 75, 150, 1020
ownership romans_julii, greek_cities, dacia