Announcement

Collapse
No announcement yet.

Check if Integer is lower then 0?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Check if Integer is lower then 0?

    I'm making a simple health script, and I'm confused on how to check if a integer is less then 0.
    Code:

    Click image for larger version

Name:	d6d2495a35b2a8f1d9e86b6fc426c87f.png
Views:	350
Size:	124.3 KB
ID:	1373590




    Output:
    Click image for larger version

Name:	UE4Editor_2017-10-22_09-21-13.png
Views:	337
Size:	555.2 KB
ID:	1373591

    Is there a node for this or something?
    Attached Files

    #2
    I think you're looking for this:

    https://docs.unrealengine.com/latest...ger/index.html

    Comment


      #3
      The problem is that you are converting your int directly into bool. If that bool is not 1, it will be false. You need to check if the health in is less than or equal to 0.

      Comment

      Working...
      X