I had a turret, with some autocannons on top of it, and tried to make an other autocannon for driving it, and this is the result:
With pictures:___________________________________________
ERROR in
action number 1
of Create Event
for object __newobject996:
In script nTur2:
Error in code at line 24:
l_section[argument6].l_child[l_section[argument6].l_childnum] = l_weapon[wj]
at position 4: Unknown variable l_section or array index out of bounds
___________________________________________
ERROR in
action number 1
of Step Event
for object Autocannon:
Error in code at line 45:
if dc_group != -1 && l_owner.dc_controlled then
at position 23: Unknown variable l_owner
___________________________________________
ERROR in
action number 1
of End Step Event
for object ShipSection:
Error in code at line 275:
image_angle = l_owner.image_angle + l_angle + rs_rotang
at position 20: Unknown variable l_owner
___________________________________________
ERROR in
action number 1
of End Step Event
for object ctr_Turrets:
Error in code at line 4:
dir = rs_offsetdir + rs_owner.image_angle - rs_owner.l_angle
at position 32: Unknown variable image_angle
___________________________________________
ERROR in
action number 1
of Alarm Event for alarm 10
for object ctr_Turrets:
Error in code at line 1:
if (dc_group != -1 && l_owner.dc_controlled) ||
at position 23: Unknown variable l_owner
and with this the ship is still running
but...
and putting the driver on place
And the error pops up when loading the ship on the game.
I would really appreciate any help, since I happen to like that ship (and my turret design).
EDIT: I deleted all the cannons in the ship, and made a new turret... and it works. So I still have no idea why it didn't earlier, and I don't really want to use another evening of my life to try fix the turret that did not work, so I'll just use the new turret.
Thank you for the replies, and sorry for using your time.