Jump to content

Calling UseWeapon in a script?


JcHARP

Recommended Posts

Well this is what I have so far:

 

If NVContractsShootCattleRustler.GetDistance Player <= 250 && iActivateKillCattleRustler == 0
Set iActivateKillCattleRustler to 1
NVContractsCRKillerRef2.UseWeapon WeapHuntingRifle NVContractsShootCattleRustler NVContractCRRef 1 0 0 1 0 NVContractsFFCaptiveMarker
Endif

My Problem is I have to talk to the NPC for him to shoot. I would like it to occur when I enter NVContractsShootCattleRustler's radius.

 

Is there a way to get this to work?

Link to comment
Share on other sites

Try so set a resetai behind the useweapon command, if it doesn't work make a separate useweapon package and do it with evaluatepackage (EVP).

But remind that both, the script function and the package of useweapon can be buggy.

 

 

        If NVContractsShootCattleRustler.GetDistance Player <= 250 && iActivateKillCattleRustler == 0

            NVContractsShootCattleRustler.addscriptpackage MyUseWeaponPACK

            NVContractsShootCattleRustler.evp

            Set iActivateKillCattleRustler to 1

        Endif
 

 



Edited by nonplusultra
Link to comment
Share on other sites

  • Recently Browsing   0 members

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