hotshot9946 Posted March 26, 2012 Share Posted March 26, 2012 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 HasBeenHiredshort WeaponOutshort CombatStyleRangedshort IsFollowingDefaultshort IsFollowingShortshort IsFollowingLongshort FollowerSwitchAggressive ;0 = Passive (wait for player0, 1 = Aggressive (attack when see enemy)short Waiting; Begin OnLoad; set up ase statsif (bLoadedOnce == 0); SetActorValue guns 70;; SetActorValue sneak 100;; SetActorValue bigguns 85;endif If (CombatStyleRanged == 1)HotshotsFollowerAREF.SetCombatStyleRanged;EndIf End Begin OnCombatEND id ( GetPlayerTeammate == 1 )resethealthrestoreav perceptioncondition100restoreav endurancecondition 100restoreav leftattackcondition 100restoreav leftmobilitycondition 100restoreav rightattackcondition 100restoreav rightmobilitycondition 100endif END Link to comment Share on other sites More sharing options...
kampeao Posted April 9, 2012 Share Posted April 9, 2012 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 ENDIt 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 More sharing options...
Quetzlsacatanango Posted April 10, 2012 Share Posted April 10, 2012 id ( GetPlayerTeammate == 1 ) should be if ( GetPlayerTeammate == 1 ) Link to comment Share on other sites More sharing options...
Recommended Posts