| Blockland Forums > Modification Help |
| Playertypename::onSpawn? |
| << < (2/3) > >> |
| Julius The 1st:
Would it be something along the lines of: --- Code: ---package spawnsize { function OnGameConnection::onClientEnterGame(%c) { %client.player.setscale("2 2 2"); } } activatepackage(spawnsize); --- End code --- ? |
| Gadgethm:
You forgot to parent it. |
| Kalphiter:
I didn't realize you didn't know too much, so here: package asdf { function GameConnection::onClientEnterGame(%client) { return parent::onClientEnterGame(%client); } }; |
| Destiny/Zack0Wack0:
I think he's asking for when a specific player type spawns though. If you want it when any player spawns with any player type use what Kalphiter posted. If you want it only when a player spawns with a certain datablock use Playertypename::onAdd(%db,%obj) |
| Truce:
For any client spawning use spawnPlayer not onClientEnterGame. That's called once. When they enter the game. For certain datablocks spawning, use Armor::onNewDatablock. I don't think you have to return the parent call. |
| Navigation |
| Message Index |
| Next page |
| Previous page |