For example:
a.b = 5 ?? That's wrong,How can I express it?a = {
{
b = 5
},
}
a.b = 5 ?? That's wrong,How can I express it?a = {
{
b = 5
},
}
Thank you, but it still reported an error
I want to get the value of "max_range". How can I express it?action = {
{
type = "direct",
action_delivery = {
{
type = "projectile",
projectile = "anti-material-rifle-ammo-3",
starting_speed = 3,
direction_deviation = 0.02,
range_deviation = 0.02,
max_range = 50,
source_effects = {
{
type = "create-explosion",
entity_name = "explosion-gunshot",
},
},
},
},
force = "not-same",
},
},
Please, use code markup! This way, it's much easier to read because indention will not be removed:sdgmlj wrote: ↑Fri Apr 29, 2022 2:50 pmaction = {
{
type = "direct",
action_delivery = {
{
type = "projectile",
projectile = "anti-material-rifle-ammo-3",
starting_speed = 3,
direction_deviation = 0.02,
range_deviation = 0.02,
max_range = 50,
source_effects = {
{
type = "create-explosion",
entity_name = "explosion-gunshot",
},
},
},
},
force = "not-same",
},
},
Code: Select all
action = {
{
type = "direct",
action_delivery = {
{
type = "projectile",
projectile = "anti-material-rifle-ammo-3",
starting_speed = 3,
direction_deviation = 0.02,
range_deviation = 0.02,
max_range = 50,
source_effects = {
{
type = "create-explosion",
entity_name = "explosion-gunshot",
},
},
},
},
force = "not-same",
},
},
That would beI want to get the value of "max_range". How can I express it?
Code: Select all
action[1].action_delivery[1].max_range
Thank you. I see. The back one is also two floors.Pi-C wrote: ↑Fri Apr 29, 2022 3:01 pmPlease, use code markup! This way, it's much easier to read because indention will not be removed:sdgmlj wrote: ↑Fri Apr 29, 2022 2:50 pmaction = {
{
type = "direct",
action_delivery = {
{
type = "projectile",
projectile = "anti-material-rifle-ammo-3",
starting_speed = 3,
direction_deviation = 0.02,
range_deviation = 0.02,
max_range = 50,
source_effects = {
{
type = "create-explosion",
entity_name = "explosion-gunshot",
},
},
},
},
force = "not-same",
},
},
Code: Select all
action = { { type = "direct", action_delivery = { { type = "projectile", projectile = "anti-material-rifle-ammo-3", starting_speed = 3, direction_deviation = 0.02, range_deviation = 0.02, max_range = 50, source_effects = { { type = "create-explosion", entity_name = "explosion-gunshot", }, }, }, }, force = "not-same", }, },
That would beI want to get the value of "max_range". How can I express it?Code: Select all
action[1].action_delivery[1].max_range