Topic [QUESTION] Object Reloading and Map drawing
![](/mwf/epx.png)
This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.
In Response to Sayned
I have got one problem. Still wonder why, but I have no idea what to do, so cooldown will work like it must. Here is my code:
What must I place after "if(timer>500) target->"?
I tried to use different things, but everything was making wrong effect. For example once I have got effect like this: charging Fireball and after some time shots, I don't need such effect.
public func ControlUse(object pClonk, int ix, int iy)
{
AddEffect("Cooldown",this,100,4+Random(2),this,this->GetID());
AddEffect("Fireball", nil, 100, 1, nil, GetID(), pClonk->GetOwner(), Angle(0,0,ix,iy),pClonk->GetX(), pClonk->GetY());
Sound("Fireball");
Sound("Fireball");
return 1;
}
func FxCooldownTimer(object target, effect, int timer)
{
if(timer>500) target->
return 1;
}
What must I place after "if(timer>500) target->"?
I tried to use different things, but everything was making wrong effect. For example once I have got effect like this: charging Fireball and after some time shots, I don't need such effect.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill