#1 2019-06-24 23:49:24

Skull Kid
Player
Sweden
Reputation: +7
Registered: 2019-01-30
Posts: 53
Windows 10 Microsoft Edge 18.18362

Locking vehicles from within the console?

I have recently tried to lock a vehicle from within the console that I spawn myself, without fiddling around in WinRFA. Does anybody here know if this can be done?

Offline

    Positive reputation 0   Negative reputation 0

#2 2019-06-25 00:06:21

Black Mamba
Member
Canada
Reputation: +1497
Registered: 2012-12-01
Posts: 4,363
Windows 10 Chrome 75.0

Re: Locking vehicles from within the console?

The only command I can think of is ObjectTemplate.teamOnVehicle 0/1/2, but that's for the whole team, not just one player. That command is used in many maps, mostly Pacific maps with carriers and big ships. These ships are always locked to one team.

As for using this command from the console, I imagine you used the BF1942 Debugger to do this? Otherwise I imagine you would get the standard ''Unauthorized command'' error dialog in the console.

Offline

    Positive reputation 0   Negative reputation 0

#3 2019-06-25 00:21:34

Skull Kid
Player
Sweden
Reputation: +7
Registered: 2019-01-30
Posts: 53
Windows 10 Microsoft Edge 18.18362

Re: Locking vehicles from within the console?

Black Mamba wrote:

The only command I can think of is ObjectTemplate.teamOnVehicle 0/1/2, but that's for the whole team, not just one player. That command is used in many maps, mostly Pacific maps with carriers and big ships. These ships are always locked to one team.

As for using this command from the console, I imagine you used the BF1942 Debugger to do this? Otherwise I imagine you would get the standard ''Unauthorized command'' error dialog in the console.

I actually modified the executable thanks to Tuia's help on how to modify the original exe file. Except I cannot seem to get it working when trying the ".teamonvehicle" command, I will se what I can do about it.

Offline

    Positive reputation 0   Negative reputation 0

#4 2019-06-25 00:53:23

ziba128
Member
Reputation: +488
Location: EaglesNest_Safe
Registered: 2012-10-14
Posts: 1,290
Website
Android Opera 52.3

Re: Locking vehicles from within the console?

Skull Kid wrote:

I have recently tried to lock a vehicle from within the console

What do you mean by "lock"?

Offline

    Positive reputation 0   Negative reputation 0

#5 2019-06-25 00:55:28

Black Mamba
Member
Canada
Reputation: +1497
Registered: 2012-12-01
Posts: 4,363
Windows 10 Chrome 75.0

Re: Locking vehicles from within the console?

ziba128 wrote:
Skull Kid wrote:

I have recently tried to lock a vehicle from within the console

What do you mean by "lock"?

I think he means that he wants the vehicle to only be able to be used by one individual, or team (teamOnVehicle command) by simply using a console command. IMO this isn't possible unless he uses the BF1942 Debugger on a LAN.

Last edited by Black Mamba (2019-06-25 00:56:42)

Offline

    Positive reputation 0   Negative reputation 0

#6 2019-06-25 05:28:48

bud
maestro
Reputation: +1842
Location: shangri la
Registered: 2012-07-07
Posts: 3,960
Website
Windows 10 Firefox 67.0

Re: Locking vehicles from within the console?

I know this much, i has to be locked when it spawns, like from the spawner. Once it is "made" you cant change the propertys of the vehicle.

Offline

    Positive reputation 0   Negative reputation 0

#7 2019-06-25 12:02:09

Skull Kid
Player
Sweden
Reputation: +7
Registered: 2019-01-30
Posts: 53
Windows 10 Microsoft Edge 18.18362

Re: Locking vehicles from within the console?

Yes Bud, that sounds correct. That's also what I was trying to do.

Black Mamba, I am using a modified BF1942.exe, which I modified myself (thanks to Tuia for the help) to unlock the console to become like the debugger, except it won't list the commands you search for with the tab key.

Offline

    Positive reputation 0   Negative reputation 0

#8 2019-06-26 00:06:28

bud
maestro
Reputation: +1842
Location: shangri la
Registered: 2012-07-07
Posts: 3,960
Website
Windows 10 Firefox 67.0

Re: Locking vehicles from within the console?

Okay some code use 0/1 as one/off, the " teamOnVehicle " might be an on/off switch, meaning if its more than 0 then its on (or true), in that case it can take the team property directly from the spawner "setObjectTemplate 2 sherman"

You can use premade spawners with the right conditions if you like
.
https://www.youtube.com/watch?v=Z5dxodt1g5M

Offline

    Positive reputation 0   Negative reputation 0

#9 2019-06-27 19:31:08

Skull Kid
Player
Sweden
Reputation: +7
Registered: 2019-01-30
Posts: 53
Windows 10 Microsoft Edge 18.18362

Re: Locking vehicles from within the console?

It seems though teamonvehicle is not adjustable in-game, I will try it with the debugger.

EDIT: Doesn't work in the debugger either.

Last edited by Skull Kid (2019-06-27 19:37:51)

Offline

    Positive reputation 0   Negative reputation 0

#10 2019-06-27 22:25:53

Arkos
Sedmin
Switzerland
Reputation: +2783
Registered: 2014-06-06
Posts: 7,048
Windows 7 Chrome 75.0

Re: Locking vehicles from within the console?

...

What about !nuke?

...

Offline

    Positive reputation 0   Negative reputation 0

#11 2019-06-28 00:33:29

bud
maestro
Reputation: +1842
Location: shangri la
Registered: 2012-07-07
Posts: 3,960
Website
Windows 10 Firefox 67.0

Re: Locking vehicles from within the console?

Arkos wrote:

What about !nuke?

That would be easier.

Offline

    Positive reputation 0   Negative reputation 0

#12 2019-06-28 00:36:06

bud
maestro
Reputation: +1842
Location: shangri la
Registered: 2012-07-07
Posts: 3,960
Website
Windows 10 Firefox 67.0

Re: Locking vehicles from within the console?

Skull Kid wrote:

It seems though teamonvehicle is not adjustable in-game, I will try it with the debugger.

EDIT: Doesn't work in the debugger either.

You need to find a way to "hotswap" one vehicle for another that in its code has another set of spawn parameters (the team setting)

Last edited by bud (2019-06-28 00:36:40)

Offline

    Positive reputation 0   Negative reputation 0

#13 2020-10-02 20:21:50

Skull Kid
Player
Sweden
Reputation: +7
Registered: 2019-01-30
Posts: 53
Windows 10 Microsoft Edge 18.19041

Re: Locking vehicles from within the console?

*BUMP*

My bad for bumping an old thread, but to lock a vehicle while in-game just use the commands in the following order:

"ObjectTemplate.active name-of-vehicle"

"ObjectTemplate.DontClearTeamOnExit 1"

Offline

    Positive reputation 0   Negative reputation 0

Board footer