Page 1 of 1

Attaching an effect to a unit [Solved]

Posted: Tue Jul 08, 2014 5:45 pm
by Kingpin
Is there any way that I can make a unit just have an effect on him without having to make a new weapon?

Example: Making a unit always have the Rage buff effect, but no actual buff

Re: Attaching an effect to a unit

Posted: Tue Jul 08, 2014 5:49 pm
by Marth8880
In the unit's ODF:

Code: Select all

DamageStartPercent	= 100.0
DamageStopPercent	= 0.0
DamageEffect		= "col_sfx_inf_harbinger_molten"
DamageAttachPoint	= "bone_ribcage"
Change the DamageEffect value to the name of the effect that you wish to attach.

Effect's position [Solved]

Posted: Wed Jul 09, 2014 4:07 pm
by Kingpin
Thanks!
Edit: The effect is not attached to the unit, as seen here:

I have added an effect to a unit, but it is not attached to him, and just floats ahead of him.
Code in ODF
DamageStartPercent = 100.0
DamageStopPercent = 0.0
DamageEffect = "com_sfx_buffed_defense"
DamageAttachPoint = "bone_ribcage"
Image

Re: Effect's position

Posted: Wed Jul 09, 2014 4:14 pm
by Marth8880
Open up com_sfx_buffed_defense.fx and change all instances of this:

Code: Select all

Offset()
		{
			PositionX(0.0000,0.0000);
			PositionY(0.2500,0.2500);
			PositionZ(0.0000,0.0000);
		}
to this:

Code: Select all

Offset()
		{
			PositionX(0.0000,0.0000);
			PositionY(0.0000,0.0000);
			PositionZ(0.0000,0.0000);
		}

Re: Effect's position

Posted: Wed Jul 09, 2014 4:56 pm
by Kingpin
Thanks mate!