[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - ObjectTemplate.addTemplate heavytankspawner

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Tue May 21, 2024 8:20 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
PostPosted: Tue Dec 30, 2008 1:22 am 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
I'm very embarrassed about this :oops: but. I need help with the simplest of codes! I have created guns from scratch that worked and vehicles too but somehow this won't work for me and I can't understand why....

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 :D

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Dec 30, 2008 1:31 am 
Offline

Joined: Thu Mar 08, 2007 10:31 pm
Posts: 103


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Dec 30, 2008 2:03 am 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
that did it! thanks! now can anyone explain the CRD commands?

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Dec 30, 2008 2:25 am 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
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?

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Dec 30, 2008 4:01 am 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
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. :o


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Dec 30, 2008 9:07 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
thanks iced! :D

_________________
Image


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 236 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group