Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

Working include statments
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=4&t=2198
Page 1 of 1

Author:  DeathfromAbove [ Mon Jul 17, 2006 4:17 am ]
Post subject:  Working include statments

I got the include statement to work finally. I did a test to add the AH-6 to the upper blue main an El Alamein. You still have to declare your objects in the ObjectSpawnTemplates.con

ObjectTemplate.create ObjectSpawner aakitspawner
ObjectTemplate.setObjectTemplate 2 AH-6
ObjectTemplate.setObjectTemplate 1 US_AA
ObjectTemplate.MinSpawnDelay 35
ObjectTemplate.MaxSpawnDelay 55
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.MaxNrOfObjectSpawned 1

Use notepad to create a new file to insert it.
Open notepad and add the location of the object that you want placed

rem
rem ***AH-6 ***
rem
Object.create aakitspawner
Object.absolutePosition 1665.06/60/834
Object.rotation -90/0/0
Object.setOSId 4
Object.setTeam 2

Save the file with the .inc extension, I called mine chopper.inc, in the same folder as your objectspawntemplates.con

Image

At the bottom of your objectspawntemplates.con, but before rem EndOfFile add the line
include chopper.inc
Don't forget the space between include and chopper, also stick with lower case

Repack and upload. When I ran my server there was the littlebird.
I am hoping this will reduce the lagg I get when I run a coop map.
My old code was so cluttered up with stuff the RFA's were twice the size of the originals, and were causing a bit of lagg.
I hope this clears things up for people.

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