Jump to content

script problem


Traveisimo

Recommended Posts

scn 00brstrfl002

 

ref Gunnr

int equipped

int shoot

float timer

float timer2

 

begin OnEquip

 

set gunnr to GetContainer

set equipped to 1

 

end

 

begin OnunEquip

 

set gunnr to GetContainer

set equipped to 0

 

end

 

begin onfire

 

if shoot == 0

set shoot to 1

set timer to 0.1

set timer2 to 0.2

endif

end

 

begin gamemode

if equipped == 1 && shoot == 1

set timer to (timer - GetSecondsPassed)

set timer2 to (timer2 - GetSecondsPassed)

if timer == 0

gunnr.FireWeapon 00burstrifl

endif

if timer2 == 0

gunnr.FireWeapon 00burstrifl

set shoot to 0

endif

endif

end

 

that was the script, i didnt get any errors or anything, it compiled fine, but in game it doesnt work. i am new to scripting and dont know why. any help would be greatly appreciated. thanks in advance.

and if anyone needs any more info, just ask

Edited by Traveisimo
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...