Unimplemented features

Krunker offers some features we do not yet know more about. These are up and coming or deprecated features.

Voxel ???

Krunker 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
);
1
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
);
1
2
3
4
5
6
7
8

NFT ???

Developer 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
);
1
2
3
4
5
6
7
8
9
10
11
12
13

Config ???

GAME.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
1
2
3
4

Delay ???

WARNING

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
);
1
2
3
4
5

Raycast ???

Developer 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
);
1
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
);
1
2
3
4
5
6
7
8

Player LOD ???

A dead feature to change LOD of players, likely created for 7fi's & Ocotodools spacesim project.

GAME.PLAYERS.toggleLOD(
    1       #num value
);
1
2
3

Execute trigger server-side

GAME.TRIGGERS.execute(num ID, ??? args){
    #???
}
1
2
3

Object morphing client-side

Tags: 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)
    );
1
2
3
4

Fixed delta client-side server-side

TIP

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();
1

Payment server-side

Suposed 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
    );
1
2
3
4
5
6
7
8

Libraries client-side server-side

Allows for importing external tooling for krunkscript. Not enough is known about the implementation of this yet.