[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
https://battlefieldmodding.com/ssm/phpBB3/

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

Author:  convict00 [ Mon Jan 26, 2009 10:50 pm ]
Post subject:  locking vehicle

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

Author:  freddy [ Mon Jan 26, 2009 11:52 pm ]
Post subject:  Re: locking vehicle


Author:  Doom27 [ Tue Jan 27, 2009 12:03 am ]
Post subject:  Re: locking vehicle

better lock it so someone dont jack it and get in jail. :neutral:

Author:  convict00 [ Tue Jan 27, 2009 1:00 am ]
Post subject:  Re: locking vehicle


Author:  Sheppard [ Tue Jan 27, 2009 3:26 am ]
Post subject:  Re: locking vehicle

The original code you posted should teamlock anything on that spawner, very interesting....

Author:  BoBD@N!trĀ¤ [ Tue Jan 27, 2009 4:16 am ]
Post subject:  Re: locking vehicle

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

Author:  convict00 [ Tue Jan 27, 2009 2:06 pm ]
Post subject:  Re: locking vehicle

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

Author:  Boom [ Tue Jan 27, 2009 11:31 pm ]
Post subject:  Re: locking vehicle

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.

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