Jump to content

Can someone help me with a script? FNV


Recommended Posts

I'm trying to save the script in GECK but no matter waht I do It won't save something has got to be wrong with the script. I wouldn't know because I'm shit.

 

scn Sheeeh

 

int bIsSheeehPressed

 

Begin GameMode

if bIsSheeehPressed != IsKeyPressed 50

	set bIsSheeehPressed to IsKeyPressed 50

	if bIsSheeehPressed

 

playsound zSheeehfx 1	

	endif

endif

End

Link to comment
scn Sheeeh

int bIsSheeehPressed

Begin GameMode

	if IsKeyPressed 50 && bIsSheeehPressed == 0
		set bIsSheeehPressed to 1
	endif

	if bIsSheeehPressed
		playsound zSheeehfx 1	
		set bIsSheeehPressed to 0
	endif

End

or

scn Sheeeh

int bIsSheeehPressed
int iSomeKey1

Begin GameMode

	set iSomeKey1 to 50 ;good for creating mcm menu and editing hotkeys from there
	
	if IsKeyPressed iSomeKey1 && bIsSheeehPressed == 0
		set bIsSheeehPressed to 1
	endif

	if bIsSheeehPressed
		playsound zSheeehfx 1	
		set bIsSheeehPressed to 0
	endif

End


"IsKeyPressed" is also a nvse command, so you need to launch GECK with nvse enabled(launch nvse_loader.exe with -editor command) or download geck extender from nexus that already have patched exe + some extra features

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use