How are you getting "force"
Everything from the game requires getting it from the game.global (unless sent through an event ie. gui events send the element)
local force = game.forces["name-of-force"]
Thank you... I didn't understand what a force was in the context of this game. I thought it was ...
Search found 2 matches
- Fri Apr 28, 2017 4:34 am
- Forum: Modding help
- Topic: EvoGUI - Trying to update
- Replies: 2
- Views: 748
- Thu Apr 27, 2017 8:45 pm
- Forum: Modding help
- Topic: EvoGUI - Trying to update
- Replies: 2
- Views: 748
EvoGUI - Trying to update
Can't get this to work.
In-game it tells me "attempt to index global 'force' (a nil value)"
Please help. I'm going to be uploading it to the mod portal asap. I know a lot of people who want this on my friends list.
Code: Select all
local evo_factor = force.evolution_factor
Please help. I'm going to be uploading it to the mod portal asap. I know a lot of people who want this on my friends list.