TriggerGod Posted November 23, 2008 Share Posted November 23, 2008 I haven't had one of these in a while First off; the purpose: I have this saber I made the other night, and it is almost ready for release, except for this one issue; the box I spawned won't open. Using Redhawke's Spawning Tut, I was able to spawn a metal box. My old script: void main() { object oLocker=CreateObject( OBJECT_TYPE_PLACEABLE, "lcker_saber", Location(Vector(-56.55119, 53.20418, -0.00007), 0.0)); CreateItemOnObject("item_resref", oLocker); } My box spawned correctly, but it was un-openable. So, I tried adding my item to the box's utp file, and removing the CreateItem line, so my new script is... void main() { object oLocker=CreateObject( OBJECT_TYPE_PLACEABLE, "lcker_saber", Location(Vector(-56.55119, 53.20418, -0.00007), 0.0)); } And it was still unopenable. So, is there a solution for my problem, because I sure haven't found one. Link to comment Share on other sites More sharing options...
Star Admiral Posted November 24, 2008 Share Posted November 24, 2008 I just had the same problem today while messing around with spawning crystal formations for lightsaber crystals. Make sure that in the box's .utp file that the "Usable" checkbox is checked. It's under the "Advanced" tab in KT. - Star Admiral Link to comment Share on other sites More sharing options...
TriggerGod Posted November 24, 2008 Author Share Posted November 24, 2008 thanks, that helped. I didn't really look in that tab because I only changed the resref. Link to comment Share on other sites More sharing options...
RedHawke Posted November 24, 2008 Share Posted November 24, 2008 Make sure that in the box's .utp file that the "Usable" checkbox is checked. It's under the "Advanced" tab in KT. Yup, the tutorial assumes you have extracted a utp file with an inventory already so that would be checked. Link to comment Share on other sites More sharing options...
TriggerGod Posted December 7, 2008 Author Share Posted December 7, 2008 Alright, thanks, both of you. Well, I'm almost done with my mod, and I have a problem. I changed one of my boxes' appearance to that of a locker, and put one of my sabers in there. I set up my script, and it works correctly. It spawns when I wanted it to spawn, and where I wanted it to spawn. But, my new problem is that the locker is empty, when I know I put one of the sabers in there. I even double checked the placeable's inventory, the saber is there, but not in the game. I even tried to make the locker back into a metal box (which I like more), but that didn't work (to my surprise...) I made sure I did everything right... Link to comment Share on other sites More sharing options...
Star Admiral Posted December 7, 2008 Share Posted December 7, 2008 Are you spawning an item into the locker or is the item already inside the locker? Check the Template ResRefs, it could be the reason. - Star Admiral Link to comment Share on other sites More sharing options...
TriggerGod Posted December 7, 2008 Author Share Posted December 7, 2008 Are you spawning an item into the locker or is the item already inside the locker? The item is already in the locker. I can try to make it empty in the utp and have the item be created when the locker is spawned. Check the Template ResRefs, it could be the reason. No; thats not it. Link to comment Share on other sites More sharing options...
Star Admiral Posted December 7, 2008 Share Posted December 7, 2008 The item is already in the locker. I can try to make it empty in the utp and have the item be created when the locker is spawned. Try that. Puzzles me. The only reason that I know of for the item not showing up in the locker is either the game can't locate the item or the wrong placeable is spawned. You checking the template resrefs rules out both options. - Star Admiral Link to comment Share on other sites More sharing options...
TriggerGod Posted December 7, 2008 Author Share Posted December 7, 2008 heh, turns out my problem had to do with the naming of the item in the Inventory Editor. I didn't even notice the problem until I looked at the editor before I took that item away, and I had named the item wrong. Thanks for trying to help me, Star. Link to comment Share on other sites More sharing options...
Star Admiral Posted December 7, 2008 Share Posted December 7, 2008 No problem, glad I could help. - Star Admiral Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.