GetDefaultSpeed
Jump to navigation
Jump to search
clearscope static double GetDefaultSpeed (class<Actor> type)
Usage
Retrieves the specified actor class's default speed.
Parameters
- type: the class name of the actor whose speed to get.
Return value
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.
Examples
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 add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated. |