Jump to content

repeat command


frodo321

Recommended Posts

so basically i have this script... it should make the weapon FOV 30 in 3rd person camera and vanilla in 1st person camera

the thing is that in 1st person the vanilla FOV works only once and only when i reequip a weapon...

i think that i need some command which would repeat this script... or some command that would always check if the camera is 1st person or 3rd person... but i don't know any command like that... it's my first day of modding so i don't know much yet :) even this code is based from one existing mod...

 

scn TTPC1

Begin GameMode

ref EquipWeapon
ref WeapHasScope

if GetContainer == Player
if IsPC1stPerson == 1
	Player.GetWeaponSightFOV EquipWeapon
elseif IsPC1stPerson == 0
 set WeapHasScope to Player.GetWeaponHasScope EquipWeapon
 set EquipWeapon to Player.GetEquippedObject 5
   if WeapHasScope == 1
      Player.GetWeaponHasScope EquipWeapon
   elseif WeapHasScope == 0
      Player.SetWeaponSightFOV 30 EquipWeapon
endif
 endif
endif
End

Link to comment
Share on other sites

  • Recently Browsing   0 members

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