| Blockland Forums > Modification Help |
| Weapon spawns too high |
| (1/2) > >> |
| TwenteFreak:
Alright, so I made this gun and it spawns too high. I asked around and according to Trigun it's the item's offset. So I changed the offset and it didn't change. It's also not the model because it's positioned like any other gun. Here's the ItemData stuff, the part that needs to get changed. --- Code: ---datablock ItemData(RevolverItem) { category = "Weapon"; // Mission editor category className = "Weapon"; // For inventory system // Basic Item Properties shapeFile = "./Revolver.dts"; rotate = false; mass = 1; density = 0.2; elasticity = 0.2; friction = 0.6; emap = true; offset = "0 0 -2"; //gui stuff uiName = "Revolver"; iconName = "./icon_Revolver"; doColorShift = true; colorShiftColor = "0.25 0.25 0.25 1.000"; // Dynamic properties defined by the scripts image = RevolverImage; canDrop = true; }; --- End code --- |
| indyjones:
--- Quote from: TwenteFreak on September 11, 2011, 03:39:07 AM ---Alright, so I made this gun and it spawns too high. I asked around and according to Trigun it's the item's offset. So I changed the offset and it didn't change. It's also not the model because it's positioned like any other gun. Here's the ItemData stuff, the part that needs to get changed. --- Code: ---datablock ItemData(RevolverItem) { category = "Weapon"; // Mission editor category className = "Weapon"; // For inventory system // Basic Item Properties shapeFile = "./Revolver.dts"; rotate = false; mass = 1; density = 0.2; elasticity = 0.2; friction = 0.6; emap = true; offset = "0 0 -2"; //gui stuff uiName = "Revolver"; iconName = "./icon_Revolver"; doColorShift = true; colorShiftColor = "0.25 0.25 0.25 1.000"; // Dynamic properties defined by the scripts image = RevolverImage; canDrop = true; }; --- End code --- --- End quote --- I believe it has to do with where the model is placed, and where the joints are. It has to be JUST right. |
| ShadowsfeaR:
Has to be JUUUUUUST right. :cookieMonster: |
| indyjones:
--- Quote from: ShadowsfeaR on September 11, 2011, 11:48:08 AM ---Has to be JUUUUUUST right. :cookieMonster: --- End quote --- Bend over and take it, son. |
| YourBuddyBill:
--- Quote from: indyjones on September 12, 2011, 02:27:46 AM --- Bend over and take it, son. --- End quote --- Spawn it from a lower brick. I.E. Place 1 brick, spawn the wep on top of it, then put another brick on top of the first one so it looks like the spawn is on the top one. Or if it is too low, do it the other way around and make the top brick without raycasting/collision/rendering. |
| Navigation |
| Message Index |
| Next page |