415 Returns the `FlightTime` of the specified gear. The `FlightTime` is a gear varialbe used to store a general time interval. The precise meaning of the `FlightTime` depends on the gear type. |
415 Returns the `FlightTime` of the specified gear. The `FlightTime` is a gear varialbe used to store a general time interval. The precise meaning of the `FlightTime` depends on the gear type. |
416 |
416 |
417 For example: The `FlightTime` of a hedgehog (`gtHedgehog`) is the time since they last have stood on solid ground. For most projectile gear types (i.e. `gtShell`), it stores the time after it has been launched. |
417 For example: The `FlightTime` of a hedgehog (`gtHedgehog`) is the time since they last have stood on solid ground. For most projectile gear types (i.e. `gtShell`), it stores the time after it has been launched. |
418 |
418 |
419 === <tt>!GetGearElasticity(gearUid) </tt> === |
419 === <tt>!GetGearElasticity(gearUid) </tt> === |
420 Returns the elasticity of the specified gear. Useful for determining if a hog is on a rope or not. If a hog is attached to a rope, or is busy firing one, the elasticity of the rope will be non-zero. |
420 Returns the elasticity of the specified gear. The elasticity normally determines how strong the gear will bounce after collisions, where higher elasticity is for stronger bounces. |
|
421 |
|
422 This is also useful for determining if a hog is on a rope or not. If a hog is attached to a rope, or is busy firing one, the elasticity of the rope will be non-zero. |
|
423 |
|
424 === <tt>!GetGearFriction(gearUid) </tt> === |
|
425 Returns the friction of the specified gear. The friction normally determines how well the gear will slide on terrain. Higher values are for increased sliding properties. |
421 |
426 |
422 === <tt>!GetHogClan(gearUid)</tt> === |
427 === <tt>!GetHogClan(gearUid)</tt> === |
423 Returns the clan ID of the specified hedgehog gear. |
428 Returns the clan ID of the specified hedgehog gear. |
424 |
429 |
425 === <tt>!GetHogTeamName(gearUid)</tt> === |
430 === <tt>!GetHogTeamName(gearUid)</tt> === |
630 === <tt>!SetGearVelocity(gearUid, dx, dy)</tt> === |
635 === <tt>!SetGearVelocity(gearUid, dx, dy)</tt> === |
631 Gives the specified gear the velocity of `dx`, `dy`. |
636 Gives the specified gear the velocity of `dx`, `dy`. |
632 |
637 |
633 === <tt>!SetFlightTime(gearUid, flighttime)</tt> === |
638 === <tt>!SetFlightTime(gearUid, flighttime)</tt> === |
634 Sets the `FlightTime` of the given gear to `flighttime`. The meaning of `FlightTime` is explained in the section `GetFlightTime`. |
639 Sets the `FlightTime` of the given gear to `flighttime`. The meaning of `FlightTime` is explained in the section `GetFlightTime`. |
|
640 |
|
641 === <tt>!SetGearElasticity(gearUid, Elasticity) </tt> === |
|
642 Sets the elasticity of the specified gear. For most gears, the elasticity determines how strong the gear will bounce after collisions, where higher elasticity is for stronger bounces. Recommended are values between `0` and `9999`. |
|
643 |
|
644 === <tt>!SetGearFriction(gearUid, Friction) </tt> === |
|
645 Sets the friction of the specified gear. The friction normally determines how well the gear will slide on terrain. Higher values are for increased sliding properties. `0` is for no sliding whatsoever, where `9999` is for very long slides, greater values are not recommended. |
635 |
646 |
636 === <tt>!SetAmmo(ammoType, count, probability, delay, numberInCrate)</tt> === |
647 === <tt>!SetAmmo(ammoType, count, probability, delay, numberInCrate)</tt> === |
637 This updates the settings for a specified [AmmoTypes Ammo Type] as of count available for players, spawn probability, availability delay in turns, and the number available in crates. This is supposed to be used in the `onAmmoStoreInit()` event handler. |
648 This updates the settings for a specified [AmmoTypes Ammo Type] as of count available for players, spawn probability, availability delay in turns, and the number available in crates. This is supposed to be used in the `onAmmoStoreInit()` event handler. |
638 |
649 |
639 Example: |
650 Example: |