#yummers health bar
48 messages · Page 1 of 1 (latest)
petty sure yeah
SUB bar.Rot.Y hide.Rot.Y 0.2
FLOOR heal.Pos.Y heal.Pos.Y
DIV R0 -0.01 5
SIN R1 bar.Rot.Y
COS R2 bar.Rot.Y
MUL R1 R1 R0
MUL R2 R2 R0
SUB bar.Pos.X bar.Pos.X R1
SUB bar.Pos.Z bar.Pos.Z R2
SUB heal.Pos.Y heal.Pos.Y 1
EQUAL R3 heal.Pos.Y 0
IF R3 Label1
GOTO Loop
LABEL Label1
SLEEP 1
SET dead.Trg.Force 1
SET dead.Trg.Force 0
LABEL Loop
SLEEP 250
END
should work
if it don't work for what your trying
uhh idk
thanks ill try soon!
how do u set it up?
1 trigger for what you want to happen when it dies, one back bar for setup and detail then the actual health bar that is smaller than the back bar and put right in front and finally a block at X health which is used for decreasing health
HEAL: health block
DEAD: trigger after death
HIDE: back bar
BAR: health bar
then. another trigger connected to this code block
Bro what is dont understand can you make a vid?

but later
don’t wanna get on rn
ok np
.
how do i take damage?
uhh have a trigger connect to the code block
then the code block connected to 1 death trigger
i did that but i still dont know how to take damage
make video
trigger the code block?
like connects. trigger TO the code block
like trigger restarts code
then set it to grapple or whatever
then do that
boom
cause code to go
i have the health bar the back of the health bar the heal block and the death trigger ALL CONNECTED AND RIGHT but still somehow that isnt enough? like i even made the trigger and stuff so what damages me?
like you should probably make the video
FLOOR heal.Pos.Y heal.Pos.Y
DIV R0 -0.01 5
SIN R1 bar.Rot.Y
COS R2 bar.Rot.Y
MUL R1 R1 R0
MUL R2 R2 R0
SUB bar.Pos.X bar.Pos.X R1
SUB bar.Pos.Z bar.Pos.Z R2
SUB heal.Pos.Y heal.Pos.Y 1
EQUAL R3 heal.Pos.Y 0
IF R3 Label1
GOTO Loop
LABEL Label1
SLEEP 1
SET dead.Trg.Force 1
SET dead.Trg.Force 0
LABEL Loop
SLEEP 250
END```
wow
SET R5 5
SET R2 210
SET R7 1
DIV R0 R5 5
MUL R2 R2 R0
DIV R2 R2 R7
ADD heal.Pos.Y heal.Pos.Y R7
ADD bar.Rot.Y base.Rot.Y 1
SIN R0 base.Rot.Y
COS R1 base.Rot.Y
DIV R0 R0 R2
DIV R1 R1 R2
ADD bar.Pos.X bar.Pos.X R0
ADD bar.Pos.Z bar.Pos.Z R1
EQUAL R0 heal.Pos.Y R5
IF R0 die
LESS R0 heal.Pos.Y 0
IF R0 die
END
LABEL die
SET die.Trg.Force 1
SET die.Trg.Force 0
END
no vid
it to big
r5 is base health
r2 is sensitivity (dont change unless inaccurate)
r7 is mult
waithe r7 don't work
ok it should work now
@drowsy ice
Ill try, it soon
instant death, rotation wonky