Difference between revisions of "Talk:OnTrigger"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Antares
(Thanks DragoonWraith!)
imported>Antares
(Info on the behaviour of OnTrigger Blocks)
Line 8: Line 8:
::The Man, thanks DragoonWraith, I thought it would be something simple. I am updating the article "See Also" section for both '''OnTrigger''' and '''GetActionRef'''.
::The Man, thanks DragoonWraith, I thought it would be something simple. I am updating the article "See Also" section for both '''OnTrigger''' and '''GetActionRef'''.
::--[[User:Antares|Antares]] 22:36, 7 September 2008 (EDT)
::--[[User:Antares|Antares]] 22:36, 7 September 2008 (EDT)
==BlockType Behaviour==
It would appear that this function behaves like a GameMode block in that it won't run in other modes (MenuMode). I tried to use this function to circumvent an effectshader called on an object in GameMode from not being run in other modes. I needed a seperate script for this due to the dynamic nature of the object I was adding. I also needed a way to retrieve a reference to the dynamic object inside the seperate script so I thought creating a TrigZone and using an OnTrigger block would be the end of my problems, obviously not. OnLoad would work perfectly but I cannot see way to run [[OnLoad]] on a dynamic reference.<BR>
--[[User:Antares|Antares]] 23:34, 7 September 2008 (EDT)

Revision as of 22:34, 7 September 2008

Triggering Reference

How do you get a reference to the triggering object? I have setup a trigzone and want to retrieve a reference for the object responsible for the trigger. This object is added to the game dynamically.
--Antares 09:42, 7 September 2008 (EDT)

GetActionRef
Dragoon Wraith TALK 10:41, 7 September 2008 (EDT)
The Man, thanks DragoonWraith, I thought it would be something simple. I am updating the article "See Also" section for both OnTrigger and GetActionRef.
--Antares 22:36, 7 September 2008 (EDT)

BlockType Behaviour

It would appear that this function behaves like a GameMode block in that it won't run in other modes (MenuMode). I tried to use this function to circumvent an effectshader called on an object in GameMode from not being run in other modes. I needed a seperate script for this due to the dynamic nature of the object I was adding. I also needed a way to retrieve a reference to the dynamic object inside the seperate script so I thought creating a TrigZone and using an OnTrigger block would be the end of my problems, obviously not. OnLoad would work perfectly but I cannot see way to run OnLoad on a dynamic reference.
--Antares 23:34, 7 September 2008 (EDT)