PRCSCR Script Templates
From Dragon Age Toolset Wiki
Revision as of 12:40, 31 January 2010 by Eshme (Talk | contribs) (Created page with 'This page serves as a repository for ready to use M2DA's and Scripts to use with PRCSCR M2DA's when adding custom content to the game. __NOTOC__ {| style="background-color:#eee...')
This page serves as a repository for ready to use M2DA's and Scripts to use with PRCSCR M2DA's when adding custom content to the game.
1. Adding a placeable into an Area | This Script serves to add a placeable of your choice into an Area of choice. |
2. ... | ... |
Adding a placeable into an Area
M2DA Setup:
AreaListName must not be "any". Chose a specific one.
Script: (As taken from the Storage Chest mod a kind Bioware employee made :o)
//const string TAL_STORAGE_CHEST_SPAWNED = "TAL_STORAGE_CHEST_SPAWNED"; const string TAL_IP_STORAGE_CHEST = "tal_ip_storage_chest"; const resource TAL_RESOURCE_IP_STORAGE_CHEST = R"tal_ip_storage_chest.utp"; void main() { object oMainControlled = GetMainControlled(); object oChest = UT_GetNearestObjectByTag(oMainControlled, TAL_IP_STORAGE_CHEST); //DisplayFloatyMessage(oMainControlled, "storage script working", FLOATY_MESSAGE, 16777215, 30.0); if (!IsObjectValid(oChest)) { location lSpawn = Location(GetArea(oMainControlled), Vector(148.77, 117.68, -0.94), 0.0); CreateObject(OBJECT_TYPE_PLACEABLE, TAL_RESOURCE_IP_STORAGE_CHEST, lSpawn); //DisplayFloatyMessage(oMainControlled, "storage chest created", FLOATY_MESSAGE, 16777215, 30.0); } }