I'm working on a sort of like a this space fighter type of game(like the arwing missions in starfox 64). unfortunetly i'm having trouble with the function that creates the missile. heres my code. [edit] took off little # signs
missile=2
do
blah blah blah
loop
function request_shot
if missile=11 then missile=2
if object exist(missile) then missile=missile+1
load object "missle.3ds",missile
yrotate object missile,180
position object missile,sxpo#,sypo#,szpo#
endfunction
the problem i'm having is is that i can't make an object called missile# even though it equals 2. i tried using val but i didn't really get what it did. if anyone could help me that would be great.