Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CreateHolyAvenger()
- {
- string sItemRR = "3032_chest_havenger";
- object oWP = GetTarget("3032_wp_holy_weapon");
- location lWP = GetLocation(oWP);
- object oChest = CreateObject(OBJECT_TYPE_PLACEABLE, sItemRR, lWP);
- // Replace the old blueprint for Holy Avenger
- object oItem = GetFirstItemInInventory(oChest);
- while (GetIsObjectValid(oItem))
- {
- if (GetTag(oItem) == "n2_wswmls007")
- {
- DestroyObject(oItem);
- break;
- }
- oItem = GetNextItemInInventory(oChest);
- }
- DelayCommand(0.1f, VoidCreateItemOnObject("n2_wswmls007", oChest));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement