| Both sides previous revisionPrevious revisionNext revision | Previous revision | 
| cw4:cpack:docs:23977d46-b69d-431a-82e1-f4013f889c5a [2021/05/09 05:46]  – Updated for script version 1.5.0 qople | cw4:cpack:docs:23977d46-b69d-431a-82e1-f4013f889c5a [2025/02/14 14:57] (current)  – external edit 127.0.0.1 | 
|---|
| * collisionThreshold: The highest terrain difference that the player can walk over. | * collisionThreshold: The highest terrain difference that the player can walk over. | 
| * startX, startZ: The cell coordinates of the player's spawn and respawn point. | * startX, startZ: The cell coordinates of the player's spawn and respawn point. | 
| * startRotation: The direction that the player points when they spawn, in degrees. 0 faces them in the positive Z direction. | * startRotation: The direction that the player points when they spawn, in degrees. 0 faces them in the positive Z direction. Clock-Wise rotation. | 
| * stunDuration: How many updates the player stays stunned for. Consecutive stuns do not stack. | * stunDuration: How many updates the player stays stunned for. Consecutive stuns do not stack. | 
|  |  | 
|  |  | 
| * maxHealth: The max health the player has. 30 is the default. Damage taken is proportional to the square root of creeper, with a depth of 1 dealing 0.1 damage per update. | * maxHealth: The max health the player has. 30 is the default. Damage taken is proportional to the square root of creeper, with a depth of 1 dealing 0.1 damage per update. | 
| * bonusRequirement: The percentage of health the player must stay above for the custom objective. | * bonusRequirement: The percentage of health the player must stay above for the custom objective. Set to negative to disable. | 
| * startingWeapons: A string containing a list of the weapons that are unlocked upon starting the level, separated by commas. Order doesn't affect this. | * startingWeapons: A string containing a list of the weapons that are unlocked upon starting the level, separated by commas. Order doesn't affect this. | 
| * weaponOrder: A list of all weapons that are in the level, in order of their hotkeys. Changing the order of this will rearrange the weapon hotkeys. | * weaponOrder: A list of all weapons that are in the level, in order of their hotkeys. Changing the order of this will rearrange the weapon hotkeys. | 
| | isFPMode  | A bool, indicating whether the player is currently in first person mode. Updates while paused.  | | | isFPMode  | A bool, indicating whether the player is currently in first person mode. Updates while paused.  | | 
| | playerForward  | A normalized 3-dimensional vector pointing in the direction the player is looking. Changing this will //not// rotate the player. Useful for making something move in front of the player.  | | | playerForward  | A normalized 3-dimensional vector pointing in the direction the player is looking. Changing this will //not// rotate the player. Useful for making something move in front of the player.  | | 
| | playerHealth  | A floating point from 0 to 1 representing how much health the player has out of their max health.  | | | playerHealth  | A floating point from 0 to maxHealth representing how much health the player has.  | | 
| | playerPos  | The position of the player as a 3-dimensional vector. It is the location of the camera when the player is in first person mode, not the terrain below the camera. This means it is roughly 9 cells above the terrain by default. Changing this will teleport the player to that x and z, but the y always follows the terrain.  | | | playerPos  | The position of the player as a 3-dimensional vector. It is the location of the camera when the player is in first person mode, not the terrain below the camera. This means it is roughly 9 cells above the terrain by default. Changing this will teleport the player to that x and z, but the y always follows the terrain.  | | 
| | playerStunned  | A boolean indicating whether or not the player is stunned.  | | | playerStunned  | A boolean indicating whether or not the player is stunned.  | |