Page 1 of 1

Auto placing ghosts when out of range.

Posted: Sun Nov 29, 2015 12:50 pm
by ps666
Hello,
yesterday, after 350 hours of playtime, i discovered the ghost placing feature (the shift-click an item funktion). What a shame! :oops: How could i live without this awesome feature? :shock:
I really hate this freakin error sound when you´re out of range or in the way. This drives me nuts, really! :evil:
Can someone make a small mod for me which use the ghost mode automatically (by clicking only the left mouse button) when i´m out of range or in the way?
And it would be cool when this mod could place a ghost always when i have only one item. Thereby i does not lose it and can place ghosts onward happily.

Thank you very much.

Re: Auto placing ghosts when out of range.

Posted: Mon Nov 30, 2015 9:03 am
by ratchetfreak
you can hold shift if you place to ghost a building

Re: Auto placing ghosts when out of range.

Posted: Mon Nov 30, 2015 9:45 am
by ps666
Yes, I know that since two days ago. I edited my post a little bit for better comprehension.

Re: Auto placing ghosts when out of range.

Posted: Tue Dec 01, 2015 2:51 pm
by SirRichie
I think this is not possible at the moment.
There are only events that allow you to react to an item or a ghost being placed. But these events are not called when the item does not get placed, e.g., because the player is in the way.

Re: Auto placing ghosts when out of range.

Posted: Tue Dec 01, 2015 9:42 pm
by ps666
That is really too bad. :cry:

Re: Auto placing ghosts when out of range.

Posted: Tue Dec 01, 2015 11:29 pm
by gheift
It could be implemented in the other way: change your keybindings to build ghosts on left click and normal on shift left. Then create a mod, which replaces the placed ghosts near you with the real building.

Re: Auto placing ghosts when out of range.

Posted: Tue Dec 01, 2015 11:37 pm
by Supercheese
SirRichie wrote:I think this is not possible at the moment.
There are only events that allow you to react to an item or a ghost being placed. But these events are not called when the item does not get placed, e.g., because the player is in the way.
I would think the on_put_item Lua event would be able to implement this, just checking what the player's holding, the position at which on_put_item was triggered, and placing a ghost entity of what was held.

Re: Auto placing ghosts when out of range.

Posted: Wed Dec 02, 2015 12:14 am
by SirRichie
Supercheese wrote:
SirRichie wrote:I think this is not possible at the moment.
There are only events that allow you to react to an item or a ghost being placed. But these events are not called when the item does not get placed, e.g., because the player is in the way.
I would think the on_put_item Lua event would be able to implement this, just checking what the player's holding, the position at which on_put_item was triggered, and placing a ghost entity of what was held.
Oh... are you positive it is called even when the actual build is not allowed?

Re: Auto placing ghosts when out of range.

Posted: Wed Dec 02, 2015 1:04 am
by Supercheese
SirRichie wrote:
Supercheese wrote:
SirRichie wrote:I think this is not possible at the moment.
There are only events that allow you to react to an item or a ghost being placed. But these events are not called when the item does not get placed, e.g., because the player is in the way.
I would think the on_put_item Lua event would be able to implement this, just checking what the player's holding, the position at which on_put_item was triggered, and placing a ghost entity of what was held.
Oh... are you positive it is called even when the actual build is not allowed?
Yep. I use it for my Orbital Ion Cannon mod.

Re: Auto placing ghosts when out of range.

Posted: Wed Dec 02, 2015 1:14 pm
by SirRichie
interesting... my bad then