Universe.Region.SceneObjectGroup.CreateScriptInstances C# (CSharp) Method

CreateScriptInstances() public method

Start the scripts contained in all the prims in this group.
public CreateScriptInstances ( int startParam, bool postOnRez, StateSource stateSource, UUID rezzedFrom, bool clearStateSaves ) : void
startParam int
postOnRez bool
stateSource StateSource
rezzedFrom UUID
clearStateSaves bool
return void
        public void CreateScriptInstances(int startParam, bool postOnRez,
                                          StateSource stateSource, UUID rezzedFrom, bool clearStateSaves)
        {
            // Don't start scripts if they're turned off in the region!
            if (!m_scene.RegionInfo.RegionSettings.DisableScripts)
            {
                foreach (SceneObjectPart part in m_partsList)
                {
                    part.Inventory.CreateScriptInstances(startParam, postOnRez, stateSource, rezzedFrom, clearStateSaves);
                }
            }
        }
SceneObjectGroup