How to use SpawnLineAttackBlood?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
TXTX
Posts: 195
Joined: Thu Sep 12, 2013 5:53 pm
Location: A Hidden Location

How to use SpawnLineAttackBlood?

Post by TXTX »

I'm trying to use this to spawn blood within basic melee attack code. I'm stumped on what bleedpos is since giving it the target's position just spawns at it's feet.
The entire code might even be the wrong way, there's no documentation so i've been trying to figure it out myself.

Code: Select all

FTranslatedLineTarget t;

	    if (t.linetarget)
            {
            ClawFocus.Angle = t.angleFromSource;
            }
			int newdam = ClawFocus.Target.DamageMobj (ClawFocus, ClawFocus, ClawDrainDamage, 'Drain');
			ClawFocus.Target.SpawnLineAttackBlood(ClawFocus, ClawFocus.Vec3To(ClawFocus.Target), t.angleFromSource, ClawDrainDamage, newdam);
Post Reply

Return to “Scripting”