Thegr8test
Member
What would be the best method to make an enemy invisible?
anim special #DEFENSIVE SPECIAL
fastattack 1
jugglecost 5
forcedirection 0
energycost 20 2
loop 0
delay 8
offset 57 115
sound data/sounds/kof/Fire.wav
frame data/chars/tracker/dspecial1.gif
attack1 10 64 100 40 16 1 0 0 20 12
frame data/chars/tracker/dspecial2.gif
attack1 5 44 110 40 16 1 0 0 20 12
frame data/chars/tracker/dspecial3.gif
attack1 12 18 85 43 16 1 0 0 20 12
frame data/chars/tracker/dspecial4.gif
attack1 21 16 76 47 16 1 0 0 20 12
frame data/chars/tracker/dspecial5.gif
attack1 12 18 85 43 16 1 0 0 20 12
frame data/chars/tracker/dspecial4.gif
attack1 0 0 0 0 0 0 0 0 0 0
frame data/chars/tracker/dspecial3.gif
frame data/chars/tracker/dspecial2.gif
frame data/chars/tracker/dspecial6.gif
drawmethod alpha 6
drawmethod channelr 0
drawmethod channelg 0.25
drawmethod channelb 0
gfx shadow 0
stealth 1 0
frame data/chars/tracker/dspecial7.gif
O Ilusionista said:Damon Caskey but isn't Drawmethod reseted when you change the animation? I can't remember for sure.
drawmethod alpha 6
drawmethod channelr 0
drawmethod channelg 0.25
drawmethod channelb 0
gfx shadow 0
stealth 1 0
void GoStealth()
{
void self = getlocalvar("self");
changeentityproperty(self, "stealth", 1);
changedrawmethod(self, "alpha", 6);
changedrawmethod(self, "channelr", 0);
changedrawmethod(self, "channelg", 0.25);
changedrawmethod(self, "channelb", 0);
changedrawmethod(self, "gfxshadow", 0);
}
@cmd GoStealth
O Ilusionista said:I am doing this from my memory so I don't know if its right - plus, I don't know which type of information the channel receives (from 0 to 255? decimal?)
I tried with changedrawmethod(self, "channelg", 0.25) and 1 value and I've got the same error.Script compile error in 'data/scripts/key/main.c': changedrawmethod
##SCRIPTS
didblockscript data/scripts/didblock/tracker.c
didhitscript data/scripts/didhit/tracker.c
onblockpscript data/scripts/onblockp/platform.c
onmodelcopyscript data/scripts/onmodelcopy/modelcopy.c
ondrawscript data/scripts/ondraw/tracker.c
animationscript data/scripts/script.c
keyscript data/scripts/key/tracker.c
takedamagescript data/scripts/takedamage/addmp.c
I deleted the line referred to gfxshadow and:Property name 'gfxshadow' is not supported by drawmethod
If I put to main.c, I've got an error with other characters.Script compile error: can't find function 'GoStealth'
kimonokimono said:I tried and I've got the following error:
I tried with changedrawmethod(self, "channelg", 0.25) and 1 value and I've got the same error.Script compile error in 'data/scripts/key/main.c': changedrawmethod