Data Realms Fan Forums http://45.55.195.193/ |
|
Gold can't be collected http://45.55.195.193/viewtopic.php?f=8&t=12143 |
Page 1 of 1 |
Author: | lazyfaith [ Fri Aug 29, 2008 4:05 pm ] |
Post subject: | Gold can't be collected |
I'm making a new moon map called "Moon Base" but at the moment it's just terrain and a rocket i forgot to take out of spawning at the start. The problem is that when somebody uses a digger on gold it makes contact with it and the gold moves but it doesn't add to your oz count. I figured it might be the gravity so i change the density of the gold so that it weighs the same on the scene as normal gold would weigh on a scene with normal gravity. But that didn't work. I have no idea what could be wrong so please help me and if you figure it out please say what was wrong, thanks. |
Author: | Gotcha! [ Fri Aug 29, 2008 5:24 pm ] |
Post subject: | Re: Gold can't be collected |
I think we're dealing with something hardcoded here. Just change these lines: Code: DebrisMaterial = Material CopyOf = Moon Base Gold to Code: DebrisMaterial = Material CopyOf = Gold Should work then. |
Author: | lazyfaith [ Fri Aug 29, 2008 5:41 pm ] |
Post subject: | Re: Gold can't be collected |
Tryed that. Because vanilla CC gold just targest whatever layer it doesn't work on my scene as each layer is differant to vanilla CC so they are called "Moon Base Sand" or something like that. The point is the "Moon Base" is at the start of every name of every material for my map so it won't target it. Make sense? |
Author: | Gotcha! [ Fri Aug 29, 2008 5:47 pm ] |
Post subject: | Re: Gold can't be collected |
I know what you're trying to say, but you're not quite right. This is a bit of code from one of my maps; Code: AddTerrainDebris = TerrainDebris InstanceName = Space Gold <--- Can be named anything. DebrisFile = ContentFile Path = Base.rte/Scenes/Objects/Gold/Gold.bmp DebrisPieceCount = 26 DebrisMaterial = Material CopyOf = Gold <--- keep this Gold, always. TargetMaterial = Material CopyOf = Space Soil <--- Your custom layer where you'd like to see the gold appear from. OnlyOnSurface = 0 MinDepth = 25 MaxDepth = 350 DensityPerMeter = 2.0 I hope it makes sense. |
Author: | lazyfaith [ Fri Aug 29, 2008 6:08 pm ] |
Post subject: | Re: Gold can't be collected |
Works perfectly now, thanks muchly. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |