Search found 3 matches
- Fri Jul 17, 2020 7:53 am
- Forum: Scripting
- Topic: Stamina Bar?
- Replies: 1
- Views: 665
Stamina Bar?
Is there any tutorial on how to build a stamina system akin to that of DOOM3 from scratch? I have no idea how to implement something like this.
- Sat Nov 16, 2019 11:53 am
- Forum: Scripting
- Topic: Triggering script based on enemy's HP?
- Replies: 2
- Views: 239
Re: Triggering script based on enemy's HP?
It's pretty close. There's no "when", but there's "while" and delays, so you can do this: script 1 OPEN { while(50 < GetActorProperty(3, APROP_HEALTH)) { Delay(1); } Acs_Execute(2, 0); } Usually, you'll be writing scripts that wait a lot like that to time your triggers. Thank you very much :)
- Sat Nov 16, 2019 9:05 am
- Forum: Scripting
- Topic: Triggering script based on enemy's HP?
- Replies: 2
- Views: 239
Triggering script based on enemy's HP?
I'm trying to make an ACS execute after a certain mob that has a TID of 3 loses 50% of its health points or more (in this case the monster has 100 base HP). I've tried with: script 1 OPEN { When (GetActorProperty (3, APROP_HEALTH,"monstername") <= 50) { Acs_Execute(2,0); } } and also: script 1 OPEN ...