Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
As a dude who (tries) to make an FPS game with CopperCube, I needed a health kits. So, I made a script for this! Also, feel free to use this script if you want or need it. First of all, the script itself: /* Now, about all the properties: HealthVar - variable for health, which will be changed by script. MaxHealth - maximal health amount that variable can have. If health is equal to it's maximum, then script wouldn't be executed. HealthAmount - amount of health given by script. DoOnPickup - action (-s) which will be executed if script is being executed. DeleteOnPickup - if true, then it will delete the object selected in next property. ObjectToDelete - an object that will be deleted if script is being executed. If you will use this script, it's better to have it as an action for a "On proximity do something" behavior. Still, you can use this with any other behavior. |
||||
|
Haven't tested yet but this could surely come in handy. Thanks for sharing! |
|