I need some advice. Tried to search, tried using AI, but no dice. I'm sure some genius here will know right away...:)
First, I see code like this a lot, where a random number is generated using the name of the class and I don't get how it works, what numbers are 'being used' to pick. A piece of Heresiarch's code as an example:
And second, again using Heresiarch's code - is there a way to use this function, but set the z offset to spawn the projectile higher?
mo = parent.SpawnMissileAngle(cls, ang1,4.);
I know there is SpawnMissileAngleZ function, but there is no description on the wiki and I am not sure it's supposed to do what I think. No matter what I set the first argument of it to, I see no projectiles in game.
Question
Rifleman
Hi guys,
I need some advice. Tried to search, tried using AI, but no dice. I'm sure some genius here will know right away...:)
First, I see code like this a lot, where a random number is generated using the name of the class and I don't get how it works, what numbers are 'being used' to pick. A piece of Heresiarch's code as an example:
And second, again using Heresiarch's code - is there a way to use this function, but set the z offset to spawn the projectile higher?
I know there is SpawnMissileAngleZ function, but there is no description on the wiki and I am not sure it's supposed to do what I think. No matter what I set the first argument of it to, I see no projectiles in game.
Thanks in advance for any help!
Share this post
Link to post
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.