[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/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/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 - locking vehicle

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Fri May 10, 2024 9:49 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: locking vehicle
PostPosted: Mon Jan 26, 2009 10:50 pm 
Offline

Joined: Thu Feb 22, 2007 12:19 pm
Posts: 99
im having a proble locking te mi8

heres the code


rem ** Locked mi8spawner **
ObjectTemplate.create ObjectSpawner mi8spawner
ObjectTemplate.setObjectTemplate 2
ObjectTemplate.setObjectTemplate 1 mi8
ObjectTemplate.MinSpawnDelay 40
ObjectTemplate.MaxSpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.teamOnVehicle 1

rem
rem *** ***
rem
Object.create mi8spawner
Object.absolutePosition 319.394/41.3382/1957.13
Object.rotation 180/0.0372636/-1.52588e-005
Object.setTeam 1



for some reason the mi8 wont lock hen my map will crash very weird


Last edited by convict00 on Tue Jan 27, 2009 12:58 pm, edited 1 time in total.

Top
 Profile Send private message E-mail  
 
 Post subject: Re: locking vehicle
PostPosted: Mon Jan 26, 2009 11:52 pm 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253


Top
 Profile Send private message E-mail  
 
 Post subject: Re: locking vehicle
PostPosted: Tue Jan 27, 2009 12:03 am 
Offline

Joined: Mon Jun 19, 2006 3:17 am
Posts: 213
better lock it so someone dont jack it and get in jail. :neutral:

_________________
My bf1942 servers:



Top
 Profile Send private message E-mail  
 
 Post subject: Re: locking vehicle
PostPosted: Tue Jan 27, 2009 1:00 am 
Offline

Joined: Thu Feb 22, 2007 12:19 pm
Posts: 99


Top
 Profile Send private message E-mail  
 
 Post subject: Re: locking vehicle
PostPosted: Tue Jan 27, 2009 3:26 am 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
The original code you posted should teamlock anything on that spawner, very interesting....

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: locking vehicle
PostPosted: Tue Jan 27, 2009 4:16 am 
Offline

Joined: Thu Apr 19, 2007 7:38 pm
Posts: 177
Depends what you have in your OST maybe
I had this problem once but that was reversed; Couldn't lock the team2 vehicles though the team1 locks were working
I figured out that we have to put the teamonvehicle 1 spawners up in the files and team 2 at bottom

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: locking vehicle
PostPosted: Tue Jan 27, 2009 2:06 pm 
Offline

Joined: Thu Feb 22, 2007 12:19 pm
Posts: 99
ok all im using the MH-53 i spawn it and i can spawn not in it on the outside of it thats OK ITS LOCKED ALSO THE MH-53 how can i do the same with the code below so no 1 can fly the Mi8

ObjectTemplate.create ObjectSpawner Technical_RecoillessSpawner
ObjectTemplate.setObjectTemplate 2 AA_Allies
ObjectTemplate.setObjectTemplate 1 EE-9
ObjectTemplate.setObjectTemplate 3 Corsair
ObjectTemplate.setObjectTemplate 4 Mustang
ObjectTemplate.setObjectTemplate 5 MH-53
ObjectTemplate.setObjectTemplate 6 willy
ObjectTemplate.setObjectTemplate 7 SA-342G
ObjectTemplate.MinSpawnDelay 45
ObjectTemplate.MaxSpawnDelay 50
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.SetSpawnDelay 10


rem
rem *** ***
rem
Object.create Technical_RecoillessSpawner
Object.absolutePosition 1431.05/02/1831.85
Object.rotation 180.554/0.443353/1.52588e-005
Object.setTeam 5


ObjectTemplate.Active MH53SoldierSpawn
ObjectTemplate.setEnterOnSpawn 0

ObjectTemplate.Active MH53PassEntry
ObjectTemplate.setEntryRadius 0

ObjectTemplate.Active MH53PilotEntry
ObjectTemplate.setEntryRadius 0

ObjectTemplate.Active Mi8SoldierSpawn
ObjectTemplate.SetEnterOnSpawn 0

ObjectTemplate.Active Mi8passEntry
ObjectTemplate.setEntryRadius 0

ObjectTemplate.Active Mi8PilotEntry
ObjectTemplate.setEntryRadius 0


Top
 Profile Send private message E-mail  
 
 Post subject: Re: locking vehicle
PostPosted: Tue Jan 27, 2009 11:31 pm 
Offline

Joined: Tue Jan 30, 2007 10:58 pm
Posts: 329
Location: www.TKO.clanservers.com
I thought you didn't want the opposing team to steal the Mi8... but now you're saying that you don't want ANYONE able to use the Mi8? It certainly looks that way judging from how you're making the entry radius' 0.

If you don't want either team to be able to enter a vehicle (basically it's just there to look at) then just change the .setObjectTemplate to any number that isn't 0, 1 or 2. Have the teamOnVehicle set to 1 and viola! Only team 3, 4, 5, etc. (which don't exist) can enter that Mi8.

_________________
[TKO] Tactical Knock Out : IP Address: 8.2.122.210 : Good Luck Dying


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.  [ 12 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

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