Jump to content

Scripting help


nasuellia

Recommended Posts

Hi all,

 

i wanna write a script that runs once when the player reloads current weapon (without FOSE) but I really dunno how to do it. I don't know the sintax for the triggering! Is there a OnReload or something? Can someone help me? Thanks.

Link to comment
Share on other sites

For example

 

short iReloading

Begin GameMode
  if Player.GetAnimAction == 8 && iReloading == 0; reloading begin
     Set iReloading to 1
     do something   ;your code
  elseif Player.GetAnimAction != 8 && iReloading == 1  ; reloading end
     Set iReloading to 0
  endif
end

Link to comment
Share on other sites

For example

 

short iReloading

Begin GameMode
  if Player.GetAnimAction == 8 && iReloading == 0; reloading begin
     Set iReloading to 1
     do something   ;your code
  elseif Player.GetAnimAction != 8 && iReloading == 1  ; reloading end
     Set iReloading to 0
  endif
end

 

Thank you very much! That's exactly was i was searching for!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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