Jump to content

can someone check this script


hotshot9946

Recommended Posts

ok im tryng to learn to script a companion like they do in game with the companion wheel. so i tried doing one like boones script. can someone check it?

 

thanks

 

 

scn HotshotsFollowerASCRIPT

 

short HasBeenHired

short WeaponOut

short CombatStyleRanged

short IsFollowingDefault

short IsFollowingShort

short IsFollowingLong

short FollowerSwitchAggressive ;0 = Passive (wait for player0, 1 = Aggressive (attack when see enemy)

short Waiting;

 

Begin OnLoad

; set up ase stats

if (bLoadedOnce == 0)

; SetActorValue guns 70;

; SetActorValue sneak 100;

; SetActorValue bigguns 85;

endif

 

If (CombatStyleRanged == 1)

HotshotsFollowerAREF.SetCombatStyleRanged;

EndIf

 

End

 

Begin OnCombatEND

 

id ( GetPlayerTeammate == 1 )

resethealth

restoreav perceptioncondition100

restoreav endurancecondition 100

restoreav leftattackcondition 100

restoreav leftmobilitycondition 100

restoreav rightattackcondition 100

restoreav rightmobilitycondition 100

endif

 

END

Link to comment
Share on other sites

What is it that's not working?

You have all the lines in the OnLoad block commented out, so if you are expecting those to work, that's why.

 

In the OnCombatEnd block you put "id" instead of "if", so if you can't save it, that's why.

Get the GECK powerup in order to display script errors.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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