player.vehicleHp only works in multiplayer?
-
- Posts: 591
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: player.vehicleHp only works in multiplayer?
Skull Kid, are you sure that player.Hp only works in MP like you said? I tried the command on a local server and it didn’t seem to work. Worked fine with the debugger though...
Can you post your code please?
Can you post your code please?
See my Strasbourg map project here.
Re: player.vehicleHp only works in multiplayer?
Hi Classical Modder =)Classical Modder wrote:Skull Kid, are you sure that player.Hp only works in MP like you said? I tried the command on a local server and it didn’t seem to work. Worked fine with the debugger though...
Can you post your code please?
Sure can! It's "player.vehicleHp" then of course the value of 30 which is max for infantry, and around 100 or more for tanks =)
Regards,
Skull Kid
Skull Kid
-
- Posts: 591
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: player.vehicleHp only works in multiplayer?
Do you have an example the code you used to make it work on a multiplayer server please?
See my Strasbourg map project here.
Re: player.vehicleHp only works in multiplayer?
I forgot to mention you need to make youself "active" by using "player.active" and your name without any spaces whatsoever, then type "player.verhiclehp" followed by a number. All without the quotes, of course =)Classical Modder wrote:Do you have an example the code you used to make it work on a multiplayer server please?
Regards,
Skull Kid
Skull Kid
-
- Posts: 591
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: player.vehicleHp only works in multiplayer?
When I did that in a local server the console said “Unrecognized object or method”, although it worked fine in the debugger. So I’m not sure that command can work in an Internet server.Skull Kid wrote:I forgot to mention you need to make youself "active" by using "player.active" and your name without any spaces whatsoever, then type "player.verhiclehp" followed by a number. All without the quotes, of course =)Classical Modder wrote:Do you have an example the code you used to make it work on a multiplayer server please?
See my Strasbourg map project here.
Re: player.vehicleHp only works in multiplayer?
Hmm… I'll have to check that out sometime soon… I'll report back!Classical Modder wrote:When I did that in a local server the console said “Unrecognized object or method”, although it worked fine in the debugger. So I’m not sure that command can work in an Internet server.Skull Kid wrote:I forgot to mention you need to make youself "active" by using "player.active" and your name without any spaces whatsoever, then type "player.verhiclehp" followed by a number. All without the quotes, of course =)Classical Modder wrote:Do you have an example the code you used to make it work on a multiplayer server please?
Regards,
Skull Kid
Skull Kid
Re: player.vehicleHp only works in multiplayer?
You may have to patch the server to accept all console commands.
Re: player.vehicleHp only works in multiplayer?
I guess so, yes.russ wrote:You may have to patch the server to accept all console commands.
Regards,
Skull Kid
Skull Kid
-
- Posts: 591
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: player.vehicleHp only works in multiplayer?
I just remembered that you made a server patch that enables all the commands russ, I’ll download it and give the commands a try. Thanks, forgot about that one.
See my Strasbourg map project here.
-
- Posts: 591
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: player.vehicleHp only works in multiplayer?
Reviving an old thread, but would there be a way to patch the EXE so that the player.active and player.name commands return the name of the current player, not the name of the latest player that connected to the server?
See my Strasbourg map project here.