Actor heat: Difference between revisions
From Cobalt Wiki
More actions
fandomwiki>Fuzzyhed Created page with " {| border=2 cellpadding=3 cellspacing=0 style="margin: 0 0 1em 1em; border-collapse: collapse;" |- |style="background:#000430; font-size:150%;" colspan="3"|'''Actor.heat''' |- |..." |
Koza1brada (talk | contribs) m 1 revision imported: Try to import fandom pages (manual dump, 3) |
||
(No difference)
| |||
Revision as of 10:57, 7 August 2025
| Actor.heat | ||
| This Property represents the heat of an actor, as in the current temperature. Basically, the thing that will kill an Actor when you either shoot a plasma gun at it, or it falls into lava. It should be noted that setting it to a negative value outright will not cause an error, but setting it to a positive value without the proper functions called before will. | ||
| Returns | ||
| Heat as an integer. |
local chosenActor = API.getPlayerActor()-- Use the modding API to get the player Actor chosenActor.heat = chosenActor.heat - 100 -- Notice it must be set relatively.
local Newmonster = API.getPlayerActor() Newmonster:updateHeatEffect(100, Newmonster.heat+1) -- I believe these two functions are interchangeable. Newmonster:addHeatEffect(Newmonster.heat) -- ^ Newmonster.heat = Newmonster.heat + 1
-- You need to call all of those to set the heat to a positive value.