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 20:12] justinset_gameplay_property [2024/09/02 20:24] (current) justin
Line 15: Line 15:
 ^Property^Description^Type^ ^Property^Description^Type^
 |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]]| |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|Determines the downward force of gravity in voxels/sec². Free movement only.|[[Number]]| +|gravity|Determines the downward force of gravity in voxels/sec². Default value is 196. Free movement only.|[[Number]]| 
-|air_control|Determines how freely the player can move while in the air. 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]]|+|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|Determines if jumping is enabled. Free movement only.|[[Boolean]]| |jump_enabled|Determines if jumping is enabled. Free movement only.|[[Boolean]]|
 |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_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]]|
Line 24: Line 24:
 |fall_damage_enabled|Determines if fall damage is enabled. Free movement only.|[[Boolean]]| |fall_damage_enabled|Determines if fall damage is enabled. Free movement only.|[[Boolean]]|
 |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_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| Fall damage must be enabled for this value to have an effect.|[[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|Fall damage must be enabled for this value to have an effect.|[[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|Fall damage must be enabled for this value to have an effect.|[[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. Fall damage must be enabled for this value to have an effect.|[[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]]|
  
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.1725333129.txt.gz · Last modified: 2024/09/02 20:12 by justin