Difference between revisions of "Talk:OnLoad"
Jump to navigation
Jump to search
Answer to Antares
imported>Antares (Question: OnLoad and implementation on dynamic references) |
imported>QQuix (Answer to Antares) |
||
Line 13: | Line 13: | ||
Is there any way to use an OnLoad block for a dynamic reference? In my specific instance I am ''spawning'' a statue (which is in fact an NPC) and wish to play the stone effect shader on it. Gamemode does work but if you should enter the console, inventory, wait screens the effectshader doesn't play. OnLoad should hypothetically cover all scenario's as the Objects 3D is always loaded in real time. If there is a solution that doesnt involve having the statue spawning activator in a different cell I would like to hear it.<BR> | Is there any way to use an OnLoad block for a dynamic reference? In my specific instance I am ''spawning'' a statue (which is in fact an NPC) and wish to play the stone effect shader on it. Gamemode does work but if you should enter the console, inventory, wait screens the effectshader doesn't play. OnLoad should hypothetically cover all scenario's as the Objects 3D is always loaded in real time. If there is a solution that doesnt involve having the statue spawning activator in a different cell I would like to hear it.<BR> | ||
--[[User:Antares|Antares]] 23:49, 7 September 2008 (EDT) | --[[User:Antares|Antares]] 23:49, 7 September 2008 (EDT) | ||
:The OnLoad block does work on Dynamic objects, including NPCs, but be aware that this block does not run on all ‘3D loads’(see above). If you are creating the NPC with PlaceAtMe, you can get a ref to it with GetSelf. I am not familiar with effect shaders, so this is all I can help you with. [[User:QQuix|QQuix]] 00:38, 8 September 2008 (EDT) |