Interact Heal

Type: Prop Brain
Level: 1 star
Pages: 1
Description: When the player interacts with this prop they will be healed 25% of their maximum health and the prop will disappear.

Kode

  1. WHEN [interacted]
  2. …WHEN DO [heal][it][0.25][multiplied by][it][max health]
  3. …WHEN DO [play fx][fx:Heal][on][it]
  4. …WHEN DO [destroy]

Alterations

Full heal
Change line 2
…WHEN DO [heal][it][it][max health]

Permanent prop with cooldown for healing properties

  1. WHEN [once] DO [boolvar:available][equals][true]
  2. WHEN [boolvar:available] DO [hologram] // I just put this effect on here so you can see it is active. You can choose any sort of effect or color change to show that the healing object is active
  3. …WHEN [interacted] // the prop is only interactive when it is not on cooldown
  4. …/…WHEN DO [heal][it][0.25][multiplied by][it][max health]
  5. …/…WHEN DO [play fx][fx:Heal][on][it]
  6. …/…WHEN DO [boolvar:available][equals][false]
  7. WHEN [not][boolvar:available] DO
  8. …WHEN [countdown timer][10] DO [boolvar:available][equals][true] // change the countdown to your cooldown period

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: