not sure if this is what you need, but
create timer called "spikes_timer", tick timer (interval 0,4 sec) and set on activate to function tick() inside script called
"spikes"
Code: Select all
step = 1
function tick()
local seq = { 1,2,3,4,5,6,7,6,5,4,3,2 }
findEntity("spikes_"..seq[step]).controller:activate()
step = step%#seq+1
end
you can change the sequence here as you want, it will be repeating again and again.
then place objets floor_spike_trap and name it "spikes_1", "spikes_2", "spikes_3" etc... up to number in sequence...