Jump to content

General Scripting Help (Forcing third person view)


Guest user29

Recommended Posts

Guest user29
Posted

Instead of creating a new thread each time I need help with a script I'm just going to use this one. I know how to remove forms in a form list in the geck, but what's the proper way to clear a whole list through a script? I see there's a RemoveForm command but that would only remove one, I need them all cleared. Thanks for any help.

Posted

I ripped this from SexoutSlavery:

		label 1
	if(ListGetCount SexoutSlaveryExtraMasters > 0)
		ListRemoveNth SexoutSlaveryExtraMasters 0
		goto 1
	endif

Pretty much what I use everywhere. I believe prideslayer was going to add a function for that in the Extender, but I'm not sure if he ever got around to it.

Guest user29
Posted

fantastic. I figured someone had done the leg work already and could share. Thanks.

Posted
fantastic. I figured someone had done the leg work already and could share. Thanks.

Yep that's it, I clear some lists in SCR Sexhappening, it's a copy of Prideslayers Sexout Notify scripts.

Posted

I do intend to add, but no, so far have not gotten around to it. There's an existing (undocumented) NVSE function to do it (ListClear) but it doesn't actually work.. so don't use that. ;)

  • 2 months later...
Guest user29
Posted

New one. What's the best way to force the player into third person? DisableplayerControls will force them into first person but I don't see a way to do third.

Posted

New one. What's the best way to force the player into third person? DisableplayerControls will force them into first person but I don't see a way to do third.

 

if 1 == IsPC1stPerson
   ;in first person, force to 3rd
   TapControl 13
endif

Guest user29
Posted

I did see TapControl while googling, but would that still work if the player has changed their key binding for 3rd person?

Posted

I did see TapControl while googling' date=' but would that still work if the player has changed their key binding for 3rd person?

[/quote']

 

Yes, TapControl isn't a specific key, it's the control no matter which key the user bound to it. 13 is the POVControl (which I think defaults to "f").

Posted

awesome thanks.

 

Whenever you see a function with "Control" it affects the currently bound key to a control. Whenever you see "Key" it affects a specific key on the keyboard regardless of what it is bound to.

 

It's why SmallerTalk checks for :

if IsControlPressed 5 ; the currently bound activation control

and not:

if IsKeyPressed 18 ; the e key

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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