How to get entity vars from a script
Posted: Wed Jul 03, 2013 3:12 pm
I am working on a detector script for mines, to see how much of a resource is around a drilling unit
when i use the createdentity i can get the basics but not the resource_searching_radius variable
so im curious for a way to look at all mods and base to get that variable for the games mines as well as mods mines to see thier search radius. The idea is to get thier search radius, divide by two and run game.findentitiesfiltered every so often on each mine to see how much it has access to then also need to get and store the mines/drills cords ie its X/Y location
any ideas?
when i use the createdentity i can get the basics but not the resource_searching_radius variable
so im curious for a way to look at all mods and base to get that variable for the games mines as well as mods mines to see thier search radius. The idea is to get thier search radius, divide by two and run game.findentitiesfiltered every so often on each mine to see how much it has access to then also need to get and store the mines/drills cords ie its X/Y location
any ideas?