hi.
i would like to add a couple new drones to the game(yes i love oblivion drone). so i created very simple objects, added it to game, etc etc. (pictures are attached)
my questions are:
1. my dron movement animation is correct (it headed to right direction) but it does't turn to right direction ...
Search found 5 matches
- Fri Apr 15, 2016 1:17 pm
- Forum: Modding help
- Topic: entity picture direction, mask etc
- Replies: 0
- Views: 502
- Sun Apr 10, 2016 1:01 am
- Forum: Modding help
- Topic: energy_source - how to access in control.lua
- Replies: 2
- Views: 952
Re: energy_source - how to access in control.lua
I am really new but I think you are unable to change existed entities after game start. but you can create a few accumulator types and replace existed type with new one after research is finished
- Fri Apr 08, 2016 8:38 am
- Forum: Modding help
- Topic: Question about distance and path
- Replies: 1
- Views: 851
Question about distance and path
Hi all.
i want to put entity via script on some random point on circle with distance 100 from players base. i used the command to check the spot.
if (game.get_surface(1).can_place_entity{name = "big-biter", position = {Fin_x, Fin_y}}) then
i would like to know
1. how i can check distance from ...
i want to put entity via script on some random point on circle with distance 100 from players base. i used the command to check the spot.
if (game.get_surface(1).can_place_entity{name = "big-biter", position = {Fin_x, Fin_y}}) then
i would like to know
1. how i can check distance from ...
- Thu Apr 07, 2016 6:22 am
- Forum: Modding help
- Topic: [Solved] very noob question about MP sync
- Replies: 2
- Views: 947
Re: [Solved] very noob question about MP sync
it works. Thank you very much
- Wed Apr 06, 2016 11:11 pm
- Forum: Modding help
- Topic: [Solved] very noob question about MP sync
- Replies: 2
- Views: 947
[Solved] very noob question about MP sync
hi all.
i read that math.random should generate the same number for all players. my code
for i, player in ipairs(game.players) do
local Number = math.random(1, 20)
local Number2 = math.random(1, 20)
player.print({"",{Number},{Number2}});
if (game.get_surface(1).can_place_entity{name ...
i read that math.random should generate the same number for all players. my code
for i, player in ipairs(game.players) do
local Number = math.random(1, 20)
local Number2 = math.random(1, 20)
player.print({"",{Number},{Number2}});
if (game.get_surface(1).can_place_entity{name ...