![]() |
baddy killing
hey i got another question. how is the script that i can kill npcs on playerworld? i have tried everything and looked everywhere but it wont work. just the normal baddies (blue soldier,...) will work, but not the other npcs. i can hit them but it wont play the gani and they wont die.
|
Basically you can create your own baddie by setting this.hp and use onActionWas.Hit() ( remove the period, forum censors) for when the player uses their sword or onActionExploded() for bombs and just take away some hp, then just kill it when this.hp is zero.
|
ill try what you mean but could you put in an example?
|
Not for copying and pasting, it's more to give you an idea of some of the things you'll need.
PHP Code:
|
All times are GMT +2. The time now is 10:38 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.