Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- // The standard init.c code goes here...
- //INIT WEATHER BEFORE ECONOMY INIT------------------------
- //INIT ECONOMY--------------------------------------
- //DATE RESET AFTER ECONOMY INIT-------------------------
- // Put the lines below at the bottom of the main() function in init.c
- // Start of code placing a Sea Chest on a coordinate.
- string myContainerName = "SeaChest";
- vector myContainerPosition = "12124.1 140.0012 12514.9";
- vector myContainerOrientation = "0 0 0";
- EntityAI myContainer = EntityAI.Cast(GetGame().CreateObject(myContainerName, myContainerPosition));
- myContainer.SetOrientation(myContainerOrientation);
- myContainer.GetInventory().CreateInInventory("Glock19");
- myContainer.GetInventory().CreateInInventory("Rag");
- myContainer.GetInventory().CreateInInventory("KitchenKnife");
- // Force update collisions
- if (myContainer.CanAffectPathgraph())
- {
- myContainer.SetAffectPathgraph(true, false);
- GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(GetGame().UpdatePathgraphRegionByObject, 100, false, myContainer);
- }
- // End of code placing a Sea Chest on a coordinate.
- }
Advertisement
Add Comment
Please, Sign In to add comment