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

  • 2 weeks later...
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

It was easier to read if you it was like this, in code...

Bump for you since you didnt get an answer :P

Link to comment
Share on other sites

  • Recently Browsing   0 members

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