equal
deleted
inserted
replaced
213 This function is called when a new gear is added. Useful in combination with `GetGearType(gearUid)`. |
213 This function is called when a new gear is added. Useful in combination with `GetGearType(gearUid)`. |
214 |
214 |
215 === <tt>onGearDelete(gearUid)</tt> === |
215 === <tt>onGearDelete(gearUid)</tt> === |
216 This function is called when a new gear is deleted. Useful in combination with `GetGearType(gearUid)`. |
216 This function is called when a new gear is deleted. Useful in combination with `GetGearType(gearUid)`. |
217 |
217 |
|
218 === <tt>onVisualGearAdd(vgUid)</tt> (0.9.23) === |
|
219 This function is called when a new visual gear is added. Useful in combination with `GetVisualGearType(vgUid)`. |
|
220 |
|
221 === <tt>onVisualGearDelete(vgUid)</tt> (0.9.23) === |
|
222 This function is called when a new visual gear is deleted. Useful in combination with `GetVisualGearType(vgUid)`. |
|
223 |
218 === <tt>onGearDamage(gearUid, damage)</tt> === |
224 === <tt>onGearDamage(gearUid, damage)</tt> === |
219 This function is called when a gear is damaged. |
225 This function is called when a gear is damaged. |
220 |
226 |
221 Example: |
227 Example: |
222 |
228 |
438 SetGearPosition(player, 1500, 1000)</code> |
444 SetGearPosition(player, 1500, 1000)</code> |
439 == Functions to get gear properties == |
445 == Functions to get gear properties == |
440 |
446 |
441 === <tt>!GetGearType(gearUid)</tt> === |
447 === <tt>!GetGearType(gearUid)</tt> === |
442 This function returns the [GearTypes gear type] for the specified gear. |
448 This function returns the [GearTypes gear type] for the specified gear. |
|
449 |
|
450 === <tt>!GetVisualGearType(vgUid)</tt> (0.9.23) === |
|
451 This function returns the [VisualGearTypes visual gear type] for the specified visual gear. |
443 |
452 |
444 === <tt>!GetGearPosition(gearUid)</tt> === |
453 === <tt>!GetGearPosition(gearUid)</tt> === |
445 Returns x,y coordinates for the specified gear. Not to be confused with `GetGearPos`. |
454 Returns x,y coordinates for the specified gear. Not to be confused with `GetGearPos`. |
446 |
455 |
447 === <tt>!GetGearRadius(gearUid)</tt> === |
456 === <tt>!GetGearRadius(gearUid)</tt> === |