Kalia24
03-17-2012, 12:17 PM
Encountered quite strange issue... I've got my own structure defined and I try to assign some value to one of it's properties using dropdown lis. It shows me:
http://img585.imageshack.us/img585/2791/beztytuuvpw.png
struct Axle (
lenght = 0.0, -- axle lenght in [m]
yPos = 0.0, -- = carLenght/2-distanceFromFront
wRadius = 0.0, -- wheels' radius in [m]
wWidth = 0.0, -- wheels' width in [m]
wMass = 0.0, -- wheels' mass in [kg]
susp = 1, -- suspension type
drive = false -- if the axle is a driving one
)
[...]
global axles = #() -- array to keep axles' properties
for i=1 to nrVal do (append axles Axle)
rollout AxleRollout "Axles' Properties" width:140 height:366 (
[...]
on axle_list selected sel do ( -- set the chosen axle's suspension type
axles[axle_spin.value].susp = sel
)
[...]
)
What have I done wrong?
http://img585.imageshack.us/img585/2791/beztytuuvpw.png
struct Axle (
lenght = 0.0, -- axle lenght in [m]
yPos = 0.0, -- = carLenght/2-distanceFromFront
wRadius = 0.0, -- wheels' radius in [m]
wWidth = 0.0, -- wheels' width in [m]
wMass = 0.0, -- wheels' mass in [kg]
susp = 1, -- suspension type
drive = false -- if the axle is a driving one
)
[...]
global axles = #() -- array to keep axles' properties
for i=1 to nrVal do (append axles Axle)
rollout AxleRollout "Axles' Properties" width:140 height:366 (
[...]
on axle_list selected sel do ( -- set the chosen axle's suspension type
axles[axle_spin.value].susp = sel
)
[...]
)
What have I done wrong?
