Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fast loop question
#6
Macro
Code:
Copy      Help
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)


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)