Battlefield Modding Tutorials BFMODS https://battlefieldmodding.com/ssm/phpBB3/ |
|
ObjectTemplate.addTemplate heavytankspawner https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=4562 |
Page 1 of 1 |
Author: | mrhowdoimod [ Tue Dec 30, 2008 1:22 am ] |
Post subject: | ObjectTemplate.addTemplate heavytankspawner |
I'm very embarrassed about this ![]() I'm creating a new map in vanilla bf that is based of berlin. it's basically berlin with a more harcore feel to it... planes flying over head, bombs dropping, random explosions, and some new skins. Well I have a B17 currently flying overhead with some new rocket engines attached. I'm currently trying to have bombs dropping from the plane as it flies across the map. I created a bomb PCO with a SM I created and it works great when you spawn it normally. now when I tried to attach the spawner it was using to the B17 nothing happens. it doesn't crash just nothing happens. here's the code.... as I said.... such simple code ObjectTemplate.Active B17Complex ObjectTemplate.addTemplate heavytankspawner ObjectTemplate.setPosition 0/-5/0 and the heavytankspawner above it looks like this: ObjectTemplate.create ObjectSpawner heavytankspawner ObjectTemplate.setObjectTemplate 2 Bomb ObjectTemplate.setObjectTemplate 1 Bomb ObjectTemplate.MinSpawnDelay 7 ObjectTemplate.MaxSpawnDelay 7 ObjectTemplate.SpawnDelayAtStart 0 ObjectTemplate.TimeToLive 45 ObjectTemplate.Distance 40 ObjectTemplate.DamageWhenLost 10 What exactly is wrong here? and as I said about Random explosions.... I have seen commands that seem to give random attributes (CRD_NONE/3/0/0) but i'm not sure what they really do or how to use them so can someone please explain those to me? thanks ![]() |
Author: | NDJason2009 [ Tue Dec 30, 2008 1:31 am ] |
Post subject: | Re: ObjectTemplate.addTemplate heavytankspawner |
Author: | mrhowdoimod [ Tue Dec 30, 2008 2:03 am ] |
Post subject: | Re: ObjectTemplate.addTemplate heavytankspawner |
that did it! thanks! now can anyone explain the CRD commands? |
Author: | Sheppard [ Tue Dec 30, 2008 2:25 am ] |
Post subject: | Re: ObjectTemplate.addTemplate heavytankspawner |
I always wondered about those as well, but I was under the impression that randomness only worked in bfv, not 1942...maybe I'm wrong? (I'd love to be wrong in this case) Also, is there a way this could work SSM? |
Author: | Iced Earth [ Tue Dec 30, 2008 4:01 am ] |
Post subject: | Re: ObjectTemplate.addTemplate heavytankspawner |
Ah! http://mdt.planetbattlefield.gamespy.co ... g/CRD.shtm ObjectTemplate.TimeToLive CRD_NONE/3/0/0 would be the same as ObjectTemplate.TimeToLive 3. The rest actually are important. ![]() |
Author: | mrhowdoimod [ Tue Dec 30, 2008 9:07 pm ] |
Post subject: | Re: ObjectTemplate.addTemplate heavytankspawner |
thanks iced! ![]() |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |