bf42 code question

Ask questions, discuss ideas, get answers
Post Reply
bfguy
Posts: 5
Joined: Tue Oct 25, 2011 6:38 am

bf42 code question

Post by bfguy »

i am trying to figure out why i cannot change the carrier aircraft with a code.
i used this code to spawn a mustang on the carrier on allied.

ObjectTemplate.Active Enterprise_corsairSpawner
ObjectTemplate.setObjectTemplate 3 mustang
ObjectTemplate.team 3
ObjectTemplate.MaxNrOfObjectSpawned 6


i want to replace the aichival with a bf109 and ive tried chaning the code using axis info but it does not work.

any help is great ! thx!
hipnox
Posts: 68
Joined: Tue Aug 09, 2011 10:34 pm

Re: bf42 code question

Post by hipnox »

This is the Enterprise corsair spawn template. Its in the Objects.con

Code: Select all

rem *** Enterprise_corsairSpawner ***
ObjectTemplate.create ObjectSpawner Enterprise_corsairSpawner
ObjectTemplate.setObjectTemplate 1 corsair
ObjectTemplate.setObjectTemplate 2 corsair
ObjectTemplate.minSpawnDelay 20
ObjectTemplate.maxSpawnDelay 40
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.holdObject 1
ObjectTemplate.team 1
just change "corsair" to "mustang " and it should work
bfguy
Posts: 5
Joined: Tue Oct 25, 2011 6:38 am

Re: bf42 code question

Post by bfguy »

no u are reading my question wrong. I have the mustang working with the code i posted. IM tryin to get the axis carrier aicival to be a 109. The code for that is what im looking for. and i dont want to mod the objects file, as u can see the code i added was to the templets.
bfguy
Posts: 5
Joined: Tue Oct 25, 2011 6:38 am

Re: bf42 code question

Post by bfguy »

got it..

ObjectTemplate.Active Enterprise_sbdSpawner
ObjectTemplate.setObjectTemplate 3 Mustang
ObjectTemplate.minSpawnDelay 1
ObjectTemplate.maxSpawnDelay 5
ObjectTemplate.MaxNrOfObjectSpawned 2
ObjectTemplate.team 3

ObjectTemplate.Active Enterprise_corsairSpawner
ObjectTemplate.minSpawnDelay 1
ObjectTemplate.maxSpawnDelay 5
ObjectTemplate.MaxNrOfObjectSpawned 2

ObjectTemplate.Active ShokakuAichiValSpawner
ObjectTemplate.setObjectTemplate 3 Yak9
ObjectTemplate.minSpawnDelay 1
ObjectTemplate.maxSpawnDelay 5
ObjectTemplate.MaxNrOfObjectSpawned 2
ObjectTemplate.team 3

ObjectTemplate.Active ShokakuZeroSpawner
ObjectTemplate.minSpawnDelay 1
ObjectTemplate.maxSpawnDelay 5
ObjectTemplate.MaxNrOfObjectSpawned 2
for those who dont know...now u know!
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: bf42 code question

Post by fo0k »

Good to hear its working, bfguy. Welcome to the site.. :D

2 things...

Do not write 'u'... write 'you' or you will not last 5 minutes round here.. I don't expect perfect grammar but there is no need for abbreviations like that.
And maybe acknowledge the fact that someone has tried to help you rather than respond with 'no, you got it wrong'.. Maybe you did not make your question clear enough... maybe you did... but it's all about basic etiquette.

Thanks
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: bf42 code question

Post by Swaffy »

fo0k wrote:Do not write 'u'... write 'you' or you will not last 5 minutes round here.. I don't expect perfect grammar but there is no need for abbreviations like that.
And maybe acknowledge the fact that someone has tried to help you rather than respond with 'no, you got it wrong'.. Maybe you did not make your question clear enough... maybe you did... but it's all about basic etiquette.
With me here, you are definitely correct. I would get banned here if I didn't hold myself back from correcting people's grammar. I know that some people have English as a second or third language, so I understand the grammatical errors. But for someone like bfguy, stuff like that annoys me.

Sorry for getting off topic.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
bfguy
Posts: 5
Joined: Tue Oct 25, 2011 6:38 am

Re: bf42 code question

Post by bfguy »

Swaffy wrote:
fo0k wrote:Do not write 'u'... write 'you' or you will not last 5 minutes round here.. I don't expect perfect grammar but there is no need for abbreviations like that.
And maybe acknowledge the fact that someone has tried to help you rather than respond with 'no, you got it wrong'.. Maybe you did not make your question clear enough... maybe you did... but it's all about basic etiquette.
With me here, you are definitely correct. I would get banned here if I didn't hold myself back from correcting people's grammar. I know that some people have English as a second or third language, so I understand the grammatical errors. But for someone like bfguy, stuff like that annoys me.

Sorry for getting off topic.
Sorry i have no excuse other then being lazy, sorry and thanks again for the help and suggestions, And the welcome :D
bfguy
Posts: 5
Joined: Tue Oct 25, 2011 6:38 am

Re: bf42 code question

Post by bfguy »

ShokakuZeroSpawner < the correct way Shokaku_ZeroSpawner < wrong way :oops:
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: bf42 code question

Post by fo0k »

bfguy wrote:
Sorry i have no excuse other then being lazy, sorry and thanks again for the help and suggestions, And the welcome :D

ok cool, thanks!
Post Reply