eg_burninghouses = EGroup_CreateIfNotFound("eg_burninghouses")
EGroup_ForEach(eg_burninghouses,
function(egid, idx, entity)
Entity_SetOnFire(entity)
end)
Thanks Jane, I have tryed this, but no luck, what am I missing in this script?
I have 18 houses that I what to set on fire from the beginning of the game.....in order to create a atmosphere of a beach landing in Dieppe.
At player 1-2-3`s starting position where the 18 burning building are located.
The map is this
Port of Dieppe
The scrip is this: - I know that in coding just a comma missing will have a influent on if the script will work or not.
---------------------------------------------------------------------------------------------------
function OnInitID()
-- [[ Markers ]]
-- [[ Squad Groups ]]
-- [[ Entity Groups ]]
eg_burninghouse1 = EGroup_CreateIfNotFound("eg_burninghouse1")
eg_burninghouse10 = EGroup_CreateIfNotFound("eg_burninghouse10")
eg_burninghouse11 = EGroup_CreateIfNotFound("eg_burninghouse11")
eg_burninghouse12 = EGroup_CreateIfNotFound("eg_burninghouse12")
eg_burninghouse13 = EGroup_CreateIfNotFound("eg_burninghouse13")
eg_burninghouse14 = EGroup_CreateIfNotFound("eg_burninghouse14")
eg_burninghouse15 = EGroup_CreateIfNotFound("eg_burninghouse15")
eg_burninghouse16 = EGroup_CreateIfNotFound("eg_burninghouse16")
eg_burninghouse17 = EGroup_CreateIfNotFound("eg_burninghouse17")
eg_burninghouse18 = EGroup_CreateIfNotFound("eg_burninghouse18")
eg_burninghouse19 = EGroup_CreateIfNotFound("eg_burninghouse19")
eg_burninghouse2 = EGroup_CreateIfNotFound("eg_burninghouse2")
eg_burninghouse3 = EGroup_CreateIfNotFound("eg_burninghouse3")
eg_burninghouse4 = EGroup_CreateIfNotFound("eg_burninghouse4")
eg_burninghouse5 = EGroup_CreateIfNotFound("eg_burninghouse5")
eg_burninghouse6 = EGroup_CreateIfNotFound("eg_burninghouse6")
eg_burninghouse7 = EGroup_CreateIfNotFound("eg_burninghouse7")
eg_burninghouse8 = EGroup_CreateIfNotFound("eg_burninghouse8")
eg_burninghouse9 = EGroup_CreateIfNotFound("eg_burninghouse9")
German_truck_with_full_load_of_bombs = EGroup_CreateIfNotFound("German_truck_with_full_load_of_bombs")
German_truck_with_metal_barrels = EGroup_CreateIfNotFound("German_truck_with_metal_barrels")
German_truck_with_some_bombs = EGroup_CreateIfNotFound("German_truck_with_some_bombs")
German_truck_with_wood_barrels = EGroup_CreateIfNotFound("German_truck_with_wood_barrels")
Train_cargo_car_with_full_load_of_bombs = EGroup_CreateIfNotFound("Train_cargo_car_with_full_load_of_bombs")
Train_cargo_car_with_half_full_load_of_bombs = EGroup_CreateIfNotFound("Train_cargo_car_with_half_full_load_of_bombs")
Train_cargo_car_with_some_bombs = EGroup_CreateIfNotFound("Train_cargo_car_with_some_bombs")
eg_burninghouses = EGroup_CreateIfNotFound("eg_burninghouses")
EGroup_ForEach(eg_burninghouses,
function(egid, idx, entity)
Entity_SetOnFire(entity)
end)
end