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.

How to use SpawnLineAttackBlood?

Postby TXTX » Sun Nov 17, 2019 8:09 am

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 allExpand view
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);
User avatar
TXTX
Insane Feline, Hacking through ZScript
 
Joined: 12 Sep 2013
Location: A Hidden Location

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest