Page MenuHomeFeedback Tracker

Ammo Event Handler
New, WishlistPublic

Description

It would be nice to have an Event handler triggered when an ammunition explode or hit something.

Details

Legacy ID
1630026872
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request
Additional Information

It is always possible to do it differently, with fired event handlers for instance, but the alternative solutions are either bad, performance wise, or unintuitive and makes the code less pedagogical for someone who wants to learn by exploring the addon.

A logical and intuitive syntax would be for instance:

class MyAmmo
{

...
class ammo_eventhandlers

        {
			hit = "code1";
                        destroyed = "code2";
        };

};

Event Timeline

Bohemia edited Steps To Reproduce. (Show Details)Oct 8 2013, 6:27 PM
Bohemia edited Additional Information. (Show Details)
Bohemia set Category to Feature Request.
Bohemia set Reproducibility to N/A.
Bohemia set Severity to None.
Bohemia set Resolution to Open.
Bohemia set Legacy ID to 1630026872.May 7 2016, 5:05 PM
Bohemia added a subscriber: AD2001.Oct 8 2013, 6:27 PM