Search found 23 matches
- Sun Mar 22, 2015 6:44 am
- Forum: Modding help
- Topic: Player produce sound
- Replies: 2
- Views: 1463
Player produce sound
I have some idea, can u tell me is that possible: can we produce sound in game when certain event occured? For example: game.onevent(defines.events.ontick, function() local pos = game.player.position local ent = game.findentities{{pos.x-2, pos.y-2}, {pos.x+2, pos.y+2}} for i, e in ipairs(ent) do if ...
- Sun Mar 22, 2015 5:57 am
- Forum: Mods
- Topic: Question for invisible resources.
- Replies: 4
- Views: 6559
Re: Question for invisible resources.
This should be in the Modding Help subforum. As to the question...I'm not sure what you're trying to do. You can't alter the selection box of an entity ingame as far as I know, all that data is loaded and locked in at startup. Maybe we can change autoplace settings? game.entityprototypes.autoplace
- Sat Mar 21, 2015 8:07 pm
- Forum: Mods
- Topic: Question for invisible resources.
- Replies: 4
- Views: 6559
Question for invisible resources.
Have a strange question, i begin to think, its impossible, SO how to change resource\entity parameters while catching certain event? Example i have zero selection boxes for coal at the game start. I need to change parameters of coal (type=resource) when event onbuiltentity (for example) is catched. ...