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/22 00:07] justinset_gameplay_property [2024/04/14 11:26] justin
Line 1: Line 1:
 ======Set Gameplay Property====== ======Set Gameplay Property======
 ---- ----
-Coming in v1.1! 
- 
 (WIP) (WIP)
  
 ====Signature:==== ====Signature:====
 <code python> <code python>
-function()+set_gameplay_property(property_name, property_value)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^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 1 and 179.|[[Number]]|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-function();+
 </code> </code>
 //Results:// //Results://
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Function** function to...+Use the **Set Gameplay Property** function to...
 </WRAP> </WRAP>
  
Line 28: Line 38:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:function_node.png?nolink|}}+{{:set_gameplay_property_node.png?nolink|}}
 </WRAP> </WRAP>
  
set_gameplay_property.txt · Last modified: 2024/04/14 11:26 by justin