
Originally Posted by
thm ov3rkill
hey Joe thanks alot How would i do it would you provide me with a example or somthing I tried doing this but it only shoots one shot and thats it Also do you happen to have aim or some sort of Instant messaging Here is my code I dont know what needs to be done i also dont know anything about settings.
Code:
led var gpio.4
leftbutton var gpio.3
cnt var byte
CLEAR
LOOP1:
iF LEFTBUTTON = 1 THEN
GOTO LOOP2
ENDIF
led=1
pause 62
led=0
pause 62
goto LOOP1
'**************************************************
LOOP2:
for cnt = 1 to 3
led=1
pause 35
led=0
pause 35
next cnt
pause 250
IF LEFTBUTTON = 1 THEN
GOTO LOOP1
ENDIF
GOTO LOOP2
Looks like you are trying to create a 3 round burst fire simulation, correct? If so you must also create a Virtual Disconnector too, a subroutine loop to stay in while waiting for the trigger to be released. Put it's call in the 3 round subroutine. Something like . . .
Code:
main:
If Trigger then fire
goto main
fire:
. . . code to flash led 3 times
goto Disconnect
Disconnect:
if trigger = 1 then
goto disconnect
else
goto main
endif
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks