How do i make an array global? I think that is the source of this error message
Cannot find structure 'MakeLevel:[u]I[/u]tem$' in local declaration at line 89.
Here is my code:
function MakeLevel()
InteractableObjects = 2
Dim Items$(2,2)
Rem Name,Type(body,weapon,etc)
`Ground
Make Object Plain 1001,1000,1000
Xrotate Object 1001,-90
sc_setupObject 1001,1,2
Color Object 1001,rgb(255,0,0)
` A SpaceShip
Make Object Sphere 101,30
Position object 101,130,Object Size Y(101)/2,0
sc_setupObject 101,2,1
Item$(1,1) = "Falcon Mk II"
Item$(1,2) = "Spaceship"
` A Laser
Make Object Box 102,3,4,10
Position object 102,-40,Object Size Y(102)/2,0
sc_setupObject 102,2,2
Item$(2,1) = "Laser"
Item$(2,2) = "Weapon"
`Make Mesh for Gun
Make Mesh From Object 102,102
`level objects are group 1
`interactable objects are group 2
endfunction
Search button isnt working for me so sorry if its already been asked