Talk:DisablePlayerControls - InputEnableLayer
Revision as of 02:16, 28 April 2017 by imported>Tania (On getting this to work.)
I had some trouble getting DisablePlayerControls - InputEnableLayer to work, and found out that the variable needs to be declared outside of a event/function bodies. At least that's what I had to do. For example:
Event OnInit()
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.DisablePlayerControls()
EndEvent
Did not work. I had to do this:
InputEnableLayer myLayer
Event OnInit()
myLayer = InputEnableLayer.Create()
myLayer.DisablePlayerControls()
EndEvent
This might be how it should be done when calling any InputLayer based functions. --Lisselli (talk) 2017-04-28T02:16:03 (EDT)