Difference between revisions of "Talk:DisablePlayerControls - InputEnableLayer"
Talk:DisablePlayerControls - InputEnableLayer (edit)
Revision as of 03:02, 28 April 2017
, 03:02, 28 April 2017no edit summary
imported>Tania (On getting this to work.) |
imported>Qazaaq |
||
Line 15: | Line 15: | ||
</source> | </source> | ||
This might be how it should be done when calling any InputLayer based functions. --[[User:Lisselli|Lisselli]] ([[User talk:Lisselli|talk]]) 2017-04-28T02:16:03 (EDT) | This might be how it should be done when calling any InputLayer based functions. --[[User:Lisselli|Lisselli]] ([[User talk:Lisselli|talk]]) 2017-04-28T02:16:03 (EDT) | ||
:It doesnt need to be declared in a function body. It just simply wont exist outside the function body if thats where you declared it. | |||
<source lang="papyrus"> | |||
Event OnInit() | |||
InputEnableLayer myLayer = InputEnableLayer.Create() | |||
myLayer.DisablePlayerControls() | |||
Utility.Wait(10) | |||
EndEvent | |||
This will disable the player controls for ten seconds and then the layer will cease to exist when the function returns. ~~~~ | |||
</source> |