Skip to content

Commit

Permalink
📝 update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Oct 28, 2024
1 parent 3ba0cac commit 0a54f63
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion sa/snippets/default/03C4.txt
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
display_onscreen_counter_with_string {var_counter} $sw4_health_display {display} CounterDisplay.Bar {text} 'DEAD' // WASTED
// $sw4_health_display stores health bar in original game. Safe to use, except if "Ghetto Drive By" mission is in progress

set_onscreen_counter_flash_when_first_displayed {var_counter} $sw4_health_display {state} true

display_onscreen_counter_with_string {var_counter} $sw4_health_display {display} CounterDisplay.Bar {text} 'DEAD' // WASTED
$sw4_health_display = 10 // start with 10%

// animate the bar
while $sw4_health_display < 100
$sw4_health_display += 1
wait 100
end

// display for one more second
wait 1000

// cleanup
clear_onscreen_counter {var_counter} $sw4_health_display

0 comments on commit 0a54f63

Please sign in to comment.