Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.32 KB

File metadata and controls

20 lines (13 loc) · 1.32 KB

G12 Enhanced oCTriggerScript

  • Package adds new options for oCTriggerScript objects:
    • zCTrigger_bitfield_callEventFuncs flag will call additional event functions oCTriggerScript.scriptFunc + _OnTouch, _OnTrigger, _OnContact, _OnUnTouch.
    • zCTrigger_bitfield_reactToOnContact flag introduces _OnContact event. It repeatedly fires as long as there is any object in oCTriggerScript._zCVob_touchVobList_numInArray.

_OnTouch, _OnUnTouch events

example_FirePlaceSavingPolicy.d

  • demonstrates how you can add oCTriggerScript objects to all fireplaces in your world which will allow you to only save game near a fireplace:

    G1&2 Enhanced oCTriggerScript

_OnContact event

example_FirePlaceFireDamage.d

  • demonstrates how you can add oCTriggerScript objects to all fireplaces in your world that will burn every Npc that is in contact with such fireplace:

    G1&2 Enhanced oCTriggerScript

Init function: G12_EnhancedoCTriggerScript_Init ();