Jump to content

Recommended Posts

Posted (edited)

I'm trying to check if stuff is enabled before setting it and the short version of my script is this:

 

Scriptname Synth:PhysicalIntegrity extends Actor

InputEnableLayer ielInputLayer
Bool Function IsActivateEnabled()

EventInit()
	ielInputLayer = InputEnableLayer.Create() 
EndEvent

EventTimer()


		Bool bTemp = rActor.IsActivateEnabled()
		if (!bTemp)
			ielInputLayer.EnableActivate(true)
		endif
EndEvent

Due to obvious Papyrus noobness its failing to compile of course since I added the check, seems ok with the setting part though.

Can't find much in Google or the Wiki on it as its a F4SE command.

Edited by Halstrom
Posted

Inputenablelayer is used for player only and all of the member functions you call on inputenablelayer itself. You can have something like this:

Bool bTemp

= ielInputLayer.IsActivateEnabled()

if (!bTemp)

ielInputLayer.EnableActivate(true)

endif

Posted

Inputenablelayer is used for player only and all of the member functions you call on inputenablelayer itself. You can have something like this:

Bool bTemp

= ielInputLayer.IsActivateEnabled()

if (!bTemp)

ielInputLayer.EnableActivate(true)

endif

Thx that got it, yes its for the player only of course :smile:
  • Recently Browsing   0 members

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