Home

CharacterPrototype

Entity that you move around on the screen during the campaign and freeplay.

Parent

Properties

crafting_speed

mining_speed

running_speed

distance_per_frame

maximum_corner_sliding_distance

heartbeat

The sound played when the character's health is low.

inventory_size

Number of slots in the main inventory. May be 0.

guns_inventory_size

Must be between 1 and 15.

build_distance

drop_item_distance

reach_distance

reach_resource_distance

item_pickup_distance

loot_pickup_distance

ticks_to_keep_gun

ticks_to_keep_aiming_direction

ticks_to_stay_in_combat

damage_hit_tint

mining_with_tool_particles_animation_positions

List of positions in the mining with tool animation when the mining sound and mining particles are created.

Examples

mining_with_tool_particles_animation_positions = {28}

running_sound_animation_positions

List of positions in the running animation when the walking sound is played.

Examples

running_sound_animation_positions = {14, 29}

moving_sound_animation_positions

animations

crafting_categories

Names of the crafting categories the character can craft recipes from. The built-in categories can be found here. See also RecipeCategory.

mining_categories

Names of the resource categories the character can mine resources from.

light

flying_bob_speed

grounded_landing_search_radius

The search radius for a non-colliding position to move the player to if they are grounded mid-flight. Must be >= 0.

enter_vehicle_distance

Must be >= 0.

tool_attack_distance

respawn_time

Time in seconds. Must be positive

has_belt_immunity

Whether this character is moved by belts when standing on them.

character_corpse

Name of the character corpse that is spawned when this character dies.

flying_collision_mask

This collision mask is used when the character is flying.

Defaults to the mask from UtilityConstants::default_collision_masks when indexed by "character/flying".

tool_attack_result

footstep_particle_triggers

Triggered every tick of the running animation.

synced_footstep_particle_triggers

Triggered when the running animation (animations) rolls over the frames defined in right_footprint_frames and left_footprint_frames.

footprint_particles

Triggered when the running animation (animations) rolls over the frames defined in right_footprint_frames and left_footprint_frames.

left_footprint_offset

Offset from the center of the entity for the left footprint. Used by footprint_particles.

right_footprint_offset

Offset from the center of the entity for the right footprint. Used by footprint_particles.

right_footprint_frames

The frames in the running animation (animations) where the right foot touches the ground.

left_footprint_frames

The frames in the running animation (animations) where the left foot touches the ground.

is_military_target

Whether this prototype should be a high priority target for enemy forces. See Military units and structures.