@name
@strict
@trigger none
propSpawnUndo(0)
let E1 = propSpawn("models/props_junk/CinderBlock01a.mdl", entity():toWorld(vec(30, 0, 30)), ang(), 1)
let E2 = propSpawn("models/props_junk/CinderBlock01a.mdl", entity():toWorld(vec(0, 0, 30)), ang(), 1)
let E3 = propSpawn("models/props_junk/CinderBlock01a.mdl", entity():toWorld(vec(-30, 0, 30)), ang(), 1)
const A = array(E1, E2, E3)
foreach(_:number, Ent:entity = A){
local E = Ent
print("test_initial_" + E:id())
timer("test_result" + E:id(), 1, 1, function(){
print("test_result" + E:id())
E:setPos(E:pos() + vec(0, 0, 10))
})
}
printTable(getTimers())
This E2 will error because it tries to move the E3 entity 3 times instead of moving all of them once
This E2 will error because it tries to move the E3 entity 3 times instead of moving all of them once