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
Last revisionBoth sides next revision
set_gameplay_property [2024/02/03 16:30] justinset_gameplay_property [2024/04/14 11:26] justin
Line 1: Line 1:
 ======Set Gameplay Property====== ======Set Gameplay Property======
 ---- ----
-Coming in v1.1!+(WIP) 
 + 
 +====Signature:==== 
 +<code python> 
 +set_gameplay_property(property_name, property_value) 
 +</code> 
 + 
 +^Argument^Description^Type^Required^ 
 +|property_name| |[[String]]|Yes| 
 +|property_value| | |Yes| 
 + 
 +The following properties are available to change using this function: 
 +^Property^Description^Type^ 
 +|movement_control_type|Value must be "relative" or "tank".|[[String]]| 
 +|gravity| |[[Number]]| 
 +|air_control|Decimal value from 0 to 1 (i.e. 0 percent to 100 percent air control).|[[Number]]| 
 +|jump_enabled| |[[Boolean]]| 
 +|jump_vertical_velocity| |[[Number]]| 
 +|jump_count| |[[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]]| 
 +|camera_fov|Camera's FOV (field of view) in degrees. Value must be between and 179.|[[Number]]| 
 + 
 +====Example:==== 
 +<code bauxite> 
 + 
 +</code> 
 +//Results:// 
 + 
 +<WRAP center round tip 100%> 
 +Use the **Set Gameplay Property** function to... 
 +</WRAP> 
 + 
 +---- 
 + 
 +<WRAP group> 
 +<WRAP half column> 
 +====Editor Node:==== 
 +{{:set_gameplay_property_node.png?nolink|}} 
 +</WRAP> 
 + 
 +<WRAP half column> 
 +</WRAP> 
 +</WRAP> 
 + 
 +~~NOTOC~~
set_gameplay_property.txt · Last modified: 2024/04/14 11:26 by justin