FG Spreadshirt Swag
  1. #1

    Lighting Extension creation quesion

    If one was to make a new light source like "Sunrod", the code would be found in "gameelements.xml and Manager_vision.lua correct?

    Something like

    gameelements.xml

    <lightingsettings>
    <preset key="sunrod" nameres="lighting_sunrod" color="FFF9FEFF" bright="9" dim="12" />

    scripts/manager_vision.lua

    local _tVisionFields = { "senses" };
    function onInit()
    VisionManager.addLightingType(Interface.getString( "lighting_sunrod"), "sunrod");
    end

  2. #2
    Yeah, that would basically do it.

    Some comments:

    * You would not edit the VisionManager script directly; but add the VisionManager.addLightingType to the custom effect in your extension.
    * If you override a preset in the lightingsettings, you have to redefine them all.

    Regards,
    JPG

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in