I am writing a generic projectile spawn function that takes the actor class type as a parameter, but i need to run some calculations using the projectile's speed and gravity. Is there a way to retrieve the default values on a class type?
ex:
Code: Select all
void A_CustomSpawnProjectile(class<Actor> missiletype, ...) {
missiletype.gravity ?
missiletype.speed ?
}