User Tools

Site Tools


set_gameplay_property

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
set_gameplay_property [2024/09/02 19:38] justinset_gameplay_property [2024/09/02 20:24] (current) justin
Line 14: Line 14:
 The following properties are available to change using this function: The following properties are available to change using this function:
 ^Property^Description^Type^ ^Property^Description^Type^
-|movement_control_type|Determines whether the player's movement is relative to the camera or tank controls. Value must be "relative" or "tank".|[[String]]| +|movement_control_type|Determines whether the player's movement is relative to the camera or uses the tank control method. Value must be "relative" or "tank".|[[String]]| 
-|gravity| |[[Number]]| +|gravity|Determines the downward force of gravity in voxels/sec². Default value is 196. Free movement only.|[[Number]]| 
-|air_control|Decimal value from 0 to 1 (i.e. 0 percent to 100 percent air control).|[[Number]]| +|air_control|Determines how freely the player can move while in the air. Must be a decimal value from 0 to 1 (e.g. a value of 0.5 indicates that the player can move at 50% of their speed while in the air). Free movement only.|[[Number]]| 
-|jump_enabled| |[[Boolean]]| +|jump_enabled|Determines if jumping is enabled. Free movement only.|[[Boolean]]| 
-|jump_vertical_velocity| |[[Number]]| +|jump_vertical_velocity|Determines the player's initial upward velocity in voxels per second when jumping. Jumping must be enabled for this value to have an effect.|[[Number]]| 
-|jump_count| |[[Number]]|+|jump_count|Determines how many times the player can jump in succession (e.g. a value of 2 would allow double jumping). Jumping must be enabled for this value to have an effect.|[[Number]]|
 |free_attack_system|Possible values are "default" (player character will attack in the direction they're facing) and "cursor" (player character will attack in the direction of the mouse cursor).|[[String]]| |free_attack_system|Possible values are "default" (player character will attack in the direction they're facing) and "cursor" (player character will attack in the direction of the mouse cursor).|[[String]]|
 |camera_fov|Camera's FOV (field of view) in degrees. Value can be from 1 to 179.|[[Number]]| |camera_fov|Camera's FOV (field of view) in degrees. Value can be from 1 to 179.|[[Number]]|
-|fall_damage_enabled| |[[Boolean]]| +|fall_damage_enabled|Determines if fall damage is enabled. Free movement only.|[[Boolean]]| 
-|fall_damage_min_velocity| |[[Number]]| +|fall_damage_min_velocity|Determines the minimum downward velocity required (in voxels/sec) before fall damage is dealt to the player. Fall damage must be enabled for this value to have an effect.|[[Number]]| 
-|fall_damage_base_damage| |[[Number]]| +|fall_damage_base_damage|Determines the base damage that will be dealt to the player when hitting the ground at the minimum velocity. Fall damage must be enabled for this value to have an effect.|[[Number]]| 
-|fall_damage_excess_damage| |[[Number]]| +|fall_damage_excess_damage|Determines additional damage (per voxel/sec over the minimum velocity) that will be dealt to the player when hitting the ground. Fall damage must be enabled for this value to have an effect.|[[Number]]| 
-|fall_damage_max_velocity| |[[Number]]| +|fall_damage_max_velocity|Determines the velocity (in voxels/sec) at which no additional fall damage will be added, therefore capping the total possible damage. Fall damage must be enabled for this value to have an effect.|[[Number]]| 
-|fall_damage_max_critical|If enabled, the player will be automatically killed when hitting the ground at or above the maximum velocity.|[[Boolean]]|+|fall_damage_max_critical|If enabled, the player will be automatically killed when hitting the ground at or above the maximum velocity. Fall damage must be enabled for this value to have an effect.|[[Boolean]]|
  
 ====Example:==== ====Example:====
Line 36: Line 36:
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Set Gameplay Property** function to...+Use the **Set Gameplay Property** function to give the player the power to double jump when picking up or equipping jump boots in a free movement game.
 </WRAP> </WRAP>
  
set_gameplay_property.1725331129.txt.gz · Last modified: 2024/09/02 19:38 by justin