So I am brand new to programming so please be kind. I am trying to give human alliance a nice skill, flickering invisibility.
So far I have this float setup:
new Float:InvisibilityChanceCSGO[7]={1.0,0.40,0.50,0.65,0.70, 0.80, 0.90};
and a little bit of the flickering code:
public ActivateSkills(client)
{
if(RaceDisabled)
{
return;
}
if(W3Chance(InvisibilityChanceCSGO[Getskilllevel]))
{
SetEntityRenderFx(client, RenderFx:RENDERFX_FLICKER_SLOW);
PrintToChat(client, "Invisibility: You've successfully used your invisibility skill and are now partially invisible.");
}
}
Now I think I need to assign it to the already exiting SKILL_INVIS, I tried to initialing do that by putting it here:
War3_AddSkillBuff(thisRaceID, SKILL_INVIS, InvisibilityChanceCSGO, fInvisibilitySkill, GameTF() ? InvisibilityAlphaTF : InvisibilityAlphaCS);
But I think that is wrong as it's an ActivateSkill, not a AddSkill buff. So where do I go from here? This is an idea I had but I am not sure if I am on the right track.
skill_InvisibilityChanceCSGO=war3_GetskillLevel(client,thisRaceID,SKILL_INVIS);
Also I've read through the tutorial a few times and searched around the forums.
So far I have this float setup:
new Float:InvisibilityChanceCSGO[7]={1.0,0.40,0.50,0.65,0.70, 0.80, 0.90};
and a little bit of the flickering code:
public ActivateSkills(client)
{
if(RaceDisabled)
{
return;
}
if(W3Chance(InvisibilityChanceCSGO[Getskilllevel]))
{
SetEntityRenderFx(client, RenderFx:RENDERFX_FLICKER_SLOW);
PrintToChat(client, "Invisibility: You've successfully used your invisibility skill and are now partially invisible.");
}
}
Now I think I need to assign it to the already exiting SKILL_INVIS, I tried to initialing do that by putting it here:
War3_AddSkillBuff(thisRaceID, SKILL_INVIS, InvisibilityChanceCSGO, fInvisibilitySkill, GameTF() ? InvisibilityAlphaTF : InvisibilityAlphaCS);
But I think that is wrong as it's an ActivateSkill, not a AddSkill buff. So where do I go from here? This is an idea I had but I am not sure if I am on the right track.
skill_InvisibilityChanceCSGO=war3_GetskillLevel(client,thisRaceID,SKILL_INVIS);
Also I've read through the tutorial a few times and searched around the forums.


Logged

