delayed effect

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

delayed effect

Post by Ranakastrasz »

Is there any way via pure data to delay an effect like an explosion? I wanted to make a nuclear bomb type thing.
Tried a chain using poison cloud-base, but that throws the effect on the first tick, instead of after the cooldown, so that didn't work.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Sigor
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun Nov 20, 2016 5:07 pm
Contact:

Re: delayed effect

Post by Sigor »

Try using a lua function, the busy wait solution.
http://lua-users.org/wiki/SleepFunction
I have no idea if it's correct, but try it.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5151
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: delayed effect

Post by Klonan »

Ranakastrasz wrote:Is there any way via pure data to delay an effect like an explosion? I wanted to make a nuclear bomb type thing.
Tried a chain using poison cloud-base, but that throws the effect on the first tick, instead of after the cooldown, so that didn't work.
Try using 'warmup' instead of 'cooldown',
I'm nto sure if it works for all trigger actions (its used in spitters if you want an example)

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: delayed effect

Post by Ranakastrasz »

That is interesting. Unfortunately I don't think you can chain projectile creation like that. Still worth a shot....

I wish I could create it like a robot capsule, and use the on-death, but there isn't anything on how the robot limit works.


No luck. that seems to be only functional on Ammunition items.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Post Reply

Return to “Modding help”