Can someone plz convert this code into darkgdk equivalent code without using the vectors library .
//bullet types
type bullets
bmodel as integer
blife as integer
endtype
dim bull(0) as bullets
make object cube 5555,3
color object 5555,RGB(255,255,0)
scale object 5555,20,20,50
hide object 5555
//bullet types//
function makebullet(obj,limb,objno,life)
ip=find free object(25000,10000)
if ip=0 then exitfunction
i=array count(bull())
add to stack bull()
bull(i).bmodel=ip
bull(i).blife=life
clone object bull(i).bmodel,objno
x#=limb position x(obj,limb)
y#=limb position y(obj,limb)
z#=limb position z(obj,limb)
ax#=object angle x(obj)
ay#=object angle y(obj)
az#=object angle z(obj)
position object bull(i).bmodel,x#,y#,z#
rotate object bull(i).bmodel,ax#,ay#,az#
endfunction
function updatebullet()
for i= 0 to array count(bull())
if bull(i).bmodel>0
move object bull(i).bmodel,12
bull(i).blife=bull(i).blife-1
if bull(i).blife<=0
delete object bull(i).bmodel
bull(i).bmodel=0
array delete element bull(),i
endif
endif
next i
endfunction
I think its about dynamic arrays but i don't know where to start.
Argent help , 9 days before submission.
ALLAH IS THE GREATEST
May he forgive me