Creating entities round the position (tested with particles)

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Creating entities round the position (tested with particles)

Post by ficolas »

I was making a explosion for the underground mining drill (when it finds oil :) ) and when I used the underground mining drill position, it wasnt centrated, so I adjusted the position, but it needs a decimal number (position -1.5) for it to be ok, but that .5 is rounded... so I cant put it exactly in the middle :S

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Creating entities round the position (tested with partic

Post by kovarex »

Hmm, this is probably caused by the engine wanting it to put it on grid.
Try to add this flag into the entity specification: "placeable-off-grid"

Code: Select all

flags = {"placeable-off-grid"}

Post Reply

Return to “Modding interface requests”