Halstrom Posted March 5, 2018 Share Posted March 5, 2018 (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 March 5, 2018 by Halstrom Link to comment Share on other sites More sharing options...
shavkacagarikia Posted March 5, 2018 Share Posted March 5, 2018 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 Link to comment Share on other sites More sharing options...
Halstrom Posted March 6, 2018 Author Share Posted March 6, 2018 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) endifThx that got it, yes its for the player only of course :smile: Link to comment Share on other sites More sharing options...
Recommended Posts