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 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 More sharing options...
Quetzlsacatanango Posted March 26, 2012 Share Posted March 26, 2012 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 More sharing options...
hotshot9946 Posted March 27, 2012 Author Share Posted March 27, 2012 wow, thanks, funny how a small mistake like a d instead of an f makes a difference lol Link to comment Share on other sites More sharing options...
Recommended Posts