OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
/// <summary>
/// Start the scripts contained in all the prims in this group.
/// </summary>
/// <param name="startParam"></param>
/// <param name="postOnRez"></param>
/// <param name="engine"></param>
/// <param name="stateSource"></param>
/// <returns>
/// Number of scripts that were valid for starting.  This does not guarantee that all these scripts
/// were actually started, but just that the start could be attempt (e.g. the asset data for the script could be found)
/// </returns>
Start the scripts contained in all the prims in this group.
Start the scripts contained in all the prims in this group .
public int CreateScriptInstances(int startParam, bool postOnRez, string engine, int stateSource)
        {
            int scriptsStarted = 0;
            if (m_scene == null)
            {
                m_log.DebugFormat("[PRIM INVENTORY]: m_scene is null. Unable to create script instances");
                return 0;
            }
            if (!m_scene.RegionInfo.RegionSettings.DisableScripts)
            {
                SceneObjectPart[] parts = m_parts.GetArray();
                for (int i = 0; i < parts.Length; i++)
                    scriptsStarted
                        += parts[i].Inventory.CreateScriptInstances(startParam, postOnRez, engine, stateSource);
            }
            return scriptsStarted;
        }
public int CreateScriptInstances ( int startParam , bool postOnRez , string engine , int stateSource ) { int scriptsStarted = 0 ; if ( m_scene == null ) { m_log . DebugFormat ( " " ) ; return 0 ; } if ( ! m_scene . RegionInfo . RegionSettings . DisableScripts ) { SceneObjectPart [ ] parts = m_parts . GetArray ( ) ; for ( int i = 0 ; i < parts . Length ; i ++ ) scriptsStarted += parts [ i ] . Inventory . CreateScriptInstances ( startParam , postOnRez , engine , stateSource ) ; } return scriptsStarted ; }
Start the scripts contained in all the prims in this group.
Start the scripts contained in all the prims in this group .
// Don't start scripts if they're turned off in the region!
Number of scripts that were valid for starting.  This does not guarantee that all these scripts
were actually started, but just that the start could be attempt
Number of scripts that were valid for starting . This does not guarantee that all these scripts were actually started but just that the start could be attempt
startParam
int
None
postOnRez
bool
None
engine
string
None
stateSource
int
None