[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 - Newbi
Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

Newbi
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=2173
Page 1 of 2

Author:  LandLord323 [ Thu Jul 06, 2006 5:36 am ]
Post subject:  Newbi


Author:  Natt [ Thu Jul 06, 2006 3:02 pm ]
Post subject: 

There's a link in the top right corner, looks like this:
Image

Easiest way to spawn an mp5 kit in a bunker would be to add a line to an existing template in ObjectSpawnTemplates.con:

ObjectTemplate.create ObjectSpawner heavytankspawner
ObjectTemplate.setObjectTemplate 3 US_MP5
ObjectTemplate.setObjectTemplate 2 M1A1
ObjectTemplate.setObjectTemplate 1 T72
ObjectTemplate.MinSpawnDelay 40
ObjectTemplate.MaxSpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10

and add an extra spawner in objectspawns.con:

Object.create heavytankspawner
Object.absolutePosition --/--/-- <--bunker position here
Object.rotation 0/0/0
Object.setTeam 3

Author:  LandLord323 [ Thu Jul 06, 2006 4:53 pm ]
Post subject:  Thank, I'll Try it tonight.. but

Why is it called a heavytankspawner? where can i find the corrlation between that and the mp5? How do I find other objects, that I might want to add to the map?

Author:  Bigboom [ Thu Jul 06, 2006 6:54 pm ]
Post subject: 

It's called heavytankspawner because you cannot add extra spawn templates serverside. Therefore, you have to use one that already exists. Because you add the mp5 as a team 3 spawn, the tank spawns are unaffected. When you add the lines

Object.create heavytankspawner
Object.absolutePosition --/--/-- <--bunker position here
Object.rotation 0/0/0
Object.setTeam 3

it tells the game to use Template 3 of the heavytankspawner. In this case that is the mp5.

You can also find a list of all objects in the reference section I believe.

Author:  Natt [ Thu Jul 06, 2006 6:57 pm ]
Post subject: 

You have to add to/edit an existing spawner template, as creating a complete new one doesn't work.

You can use any spawner template to spawn any vehicle or weapon.

tutorial.php?page=objectlist.html
You can add 1942 objects to Desertcombat, 1942 and desertcombat objects to DC Final, but not the other way round.

Author:  LandLord323 [ Fri Jul 07, 2006 2:57 am ]
Post subject: 

Awesome.. that worked...
I still need to do some reading, but can you tell me how many setObjectTemplate assignments I can have to one ObjectTemplate.create ObjectSpawner heavytankspawner?

Author:  Bigboom [ Fri Jul 07, 2006 8:11 am ]
Post subject: 

Not sure on that. I've had up to 6 setObjectTemplates if I remember rightly but never tried more than that. You can probably do more. If there is a limit you can always do the same thing with a different spawner (such as the lighttankspawner for example).

Author:  Natt [ Fri Jul 07, 2006 11:31 am ]
Post subject: 

The most I've seen is 14 on ktr's map :shock: , I presume they all worked. :P

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/