| Blockland Forums > Modification Help |
| Function for Walking |
| (1/9) > >> |
| Minnax:
Playtypes change the sizes of players, and they also change the values of the players, including the speed the player walks, jumps, and healh too. I was wondering if it was possible to do the same thing to a player but not alter all the values. I was also wondering if you could force a player to use the command "walking" through a script, and lock them into using it and can not stop until otherwise. I do know you can force the player to zoom in. Forget it. Found out that this isn't possible anyways. However, I want to know what the function is for moving forward, backwards, anything of the sort |
| Slicksilver:
I think you mean player datablocks but I'm not sure. If you want to edit just a few values, you can do something like this: --- Code: ---datablock PlayerData(MyPlayer:PlayerStandardArmor) { canJet = 0; runForce=30000; }; --- End code --- That would copy all of the attributes from the default player besides the ones you specify. You can't really force a player to walk through a script, however you could push them towards where they're looking to simulate walking. I don't recommend it. |
| Port:
The only way to simulate proper engine-handled walking velocity would be making them an identical AIPlayer, removing their player and use .setMoveDestination/.setMoveObject/.setMoveSpeed on the AIPlayer. Also, remember to set their control object to their camera and make their camera orbit the AIPlayer. I don't recommend it, though. |
| Minnax:
Prehaps I said forcing a player to walk wrong. By using command, I mean, as if you were holding it on. As if you were forced to slow down when moving, via, walking command. And I do not mean player datablocks. I asking for how does playerscale work when you use it, does it reduce datablock values? |
| Slicksilver:
--- Quote from: Minnax on January 21, 2012, 07:13:41 PM ---Prehaps I said forcing a player to walk wrong. By using command, I mean, as if you were holding it on. As if you were forced to slow down when moving, via, walking command. And I do not mean player datablocks. I asking for how does playerscale work when you use it, does it reduce datablock values? --- End quote --- I'm sorry sir, but the first part of your message makes 0 sense. As for the second part, it makes slightly more sense but not completely. If by playerscale you mean the size of the player, all the values remain the same except for things that operate on a multiplier of player size, such as damage taken. It doesn't reduce or increase other datablock values, such as max speed. |
| Navigation |
| Message Index |
| Next page |