Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Sat Apr 27, 2024 12:59 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Mon Jul 17, 2006 4:17 am 
Offline

Joined: Fri Jun 17, 2005 12:00 am
Posts: 38
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.


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.  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 154 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