GearTypes.wiki
changeset 1026 1a9e923f1c1b
parent 1025 e6c3e90f2373
child 1027 e50238cb0131
equal deleted inserted replaced
1025:e6c3e90f2373 1026:1a9e923f1c1b
   112 If the crate has just been collected, the gear message flag `gmDestroy` will be set before `onGearDelete` is called.
   112 If the crate has just been collected, the gear message flag `gmDestroy` will be set before `onGearDelete` is called.
   113 
   113 
   114  * `Pos`: Crate type: 1=ammo crate, 2=health crate, 4=utility crate (also see below)
   114  * `Pos`: Crate type: 1=ammo crate, 2=health crate, 4=utility crate (also see below)
   115  * `Tag`: Used for the appear animation
   115  * `Tag`: Used for the appear animation
   116  * `Health`: Amount of health contained in a health crate
   116  * `Health`: Amount of health contained in a health crate
   117  * `Power`: Ammo count in an ammo or utility crate. `0` = Use weapon scheme default
   117  * `Power`: Ammo count in an ammo or utility crate. 0 = Use weapon scheme default (default: 0)
   118  * `Boom`: Explosion size and damage (default: 25)
   118  * `Boom`: Explosion size and damage (default: 25)
   119 
   119 
   120 We recommend you to use `SpawnAmmoCrate` and the like to crate crate gears instead of `AddGear`.
   120 We recommend you to use `SpawnAmmoCrate` and the like to crate crate gears instead of `AddGear`.
   121 
   121 
   122 Advanced crate types: If you just care about normal crates, the values 1, 2 and 4 mentioned above are all you need to know. But Hedgewars supports a few crate variants which can be spawned with `SpawnFakeAmmoCrate` and the like. The `Pos` parameter is in reality a sum of several flags which need to be added up for the final type.
   122 Advanced crate types: If you just care about normal crates, the values 1, 2 and 4 mentioned above are all you need to know. But Hedgewars supports a few crate variants which can be spawned with `SpawnFakeAmmoCrate` and the like. The `Pos` parameter is in reality a sum of several flags which need to be added up for the final type.