05-04-2009, 07:49 AM
Macro
out; key CE ;;remove (this is for testing in QM)
type WEAPON nextWeaponKey nRep
ARRAY(WEAPON) a
a.create(2) ;;2 weapons
a[0].nextWeaponKey='7'
a[0].nRep=25
a[1].nextWeaponKey='8'
a[1].nRep=20
int i
rep
,for i 0 a.len ;;for each weapon
,,out "weapon %i" i
,,
,,rep a[i].nRep ;;Main loop
,,,out "."
,,,0.1
,,,;...
,,,
,,key (a[i].nextWeaponKey) ;; Key pressed to change to next weapon
,,1
#if 0 ;;remove (this is for testing in QM)