oualid6496
Well-Known Member
Is it possible to create items like fire fields when a raid is activated? I saw that someone asked the same question but for an older tfs thought that there could be a function now 
Yes you can create or remove anything at anytime in any script, however when you do create these items you have to take into account the amount and where you place them. But yes you can create movable items, fields, even entire maps.
If its just placement than you can randomize the placement while setting conditions not to set them in houses or pz zones. If removal is involved than you need to be specific about the placement, meaning you need to set exact coordinates or at the very least a scan of the area which can become complicated very quickly due to the stack order of things.
Game.createItem(ID, amount, position)
raids are coded in sources + .xml file. You cannot do that here. You need to create new raid system in globalevents in lua.But how will you add it to the raid file using delay?
function doSomething()
Game.createItem(ID, amount, position)
end
addEvent(doSomething, 60000) -- 60000 is minute