clearscope static double GetDefaultSpeed (class<Actor> type)
Retrieves the specified actor class's default speed.
- type: the class name of the actor whose speed to get.
The function returns the class's FastSpeed property if the current difficulty setting has fast monsters enabled and said property is 0 or greater, otherwise it returns the Speed property. In the case that the class is null, it returns 0, however.
|Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.|