Unimplemented features
Krunker offers some features we do not yet know more about. These are up and coming or deprecated features.
???
VoxelKrunker offers two methods for a future voxel gamemode, speculated to be a survival minecraft style game.
# Destroy voxel
GAME.VOXEL.destroy(
4, # num voxel id
);
2
3
4
# Place voxel
GAME.VOXEL.place(
4, # num x position
4, # num y position
4, # num z position
???, # ??? type of block
{} # obj additional data
);
2
3
4
5
6
7
8
???
NFTDeveloper statement on NFT methods
‟Added Basic NFT functions: hasWallet, ownedAssets (check docs)„ ~ Krunker development team, patchnotes. It was never added to the docs.
obj player = GAME.PLAYERS.getSelf();
# Check if player owns certain assets
GAME.NFT.ownedAssets(
player.id, #str player id
??? #??? collection
callback #action(???) callback
);
# Check if player has a crypto wallet
GAME.NFT.hasWallet(
player.id #str player id
);
2
3
4
5
6
7
8
9
10
11
12
13
???
ConfigGAME.CONFIG.getClasses(); # Get objects with class information
GAME.CONFIG.getMatch(); # Get objects with match information
GAME.CONFIG.getSettings(); # Get objects with settings information
GAME.CONFIG.getWeapons(); # Get objects with weapon information
2
3
4
???
DelayWARNING
This feature was removed from autocomplete
# Delay a script execution
GAME.UTILS.delay(
afterDelay # action(???) callback when delay has passed
200 # num time in miliseconds
);
2
3
4
5
???
RaycastDeveloper statement on Raycast methods
‟Added raycast support (WIP - check docs)„ ~ Krunker development team, patchnotes. It was never added to the docs.
# Raycast from point in space (returns void)
GAME.RAYCAST.from(
0, # num x position
0, # num y position
0, # num z position
5, # num radian x direction
5, # num radian y direction
200 # num distance of ray
);
2
3
4
5
6
7
8
9
# Get player object
obj player = GAME.PLAYERS.getSelf();
# Raycast from player (returns void)
GAME.RAYCAST.fromPlayer(
player, # obj player reference
200 # num distance
);
2
3
4
5
6
7
8
???
Player LODA dead feature to change LOD of players, likely created for 7fi's & Ocotodools spacesim project.
GAME.PLAYERS.toggleLOD(
1 #num value
);
2
3
server-side
Execute triggerGAME.TRIGGERS.execute(num ID, ??? args){
#???
}
2
3
client-side
Object morphingTags: Morph targets, Shape keys
You can interpolate between morphstates on a 3d model. Does not work.
object.updateMorph(
"Comedy", # str morph target/Shape key
0.2 # num value (0 - 1)
);
2
3
4
client-side server-side
Fixed deltaTIP
You can get fixed delta regularly by deviding the last GAME.TIME.now() by the current one.
Suposed to give delta non dependent on game speed on the client side. Currently gives regular delta. Server side is not affected by game speed.
GAME.TIME.fixedDelta();
server-side
PaymentSuposed to allow scripters to give and charge players for KR. Unimplemented.
GAME.PAYMENTS.charge(
# ???
);
GAME.PAYMENTS.giveKR(
player.id, # str player id
5 # num kr value to give
);
2
3
4
5
6
7
8
client-side server-side
LibrariesAllows for importing external tooling for krunkscript. Not enough is known about the implementation of this yet.