Hmm, this is realy weird.
I tried an example from jassHelper manual:
struct Parent
stub method xx takes nothing returns nothing
call BJDebugMsg("Parent")
endmethod
method doSomething takes nothing returns nothing
call this.xx()
call this.xx()...
How can I use struct methods as callback functions (triggeraction functions, timer callback functions...)? I can pass the static methods, but I want to pass normal method of instanciated struct.
Just an example:
struct S_test
integer i = 0
// constructor
static method...
SOLVED
I am creating all my hero abilities based on channel spell with Target Type: Instant (No Target), cast time and follow through time set to 0.0, but always I push the ability button, my hero stops and cancel his current order.
Are there any possibilities to make instant channel ability...
Hi,
I am trying to disable ingame zoom (mousewheel), because it's ruining my ingame cameras (selection camera, inventory camera and so on). Is there any way how to disable this zoom, or set my camera to be unmodificable? I hope you got what I mean, thanks for any thoughts.
In object editor it's simple, I can just add string "hand" and "left" or "right", but I can't figure out string for right hand to pass to JASS function AddSpecialEffectTarget. I tried differend combinations with "hand" and "right", for example
call AddSpecialEffectTarget(effectPath...
I mean how can I add the small buff icon (stun icon for example) to the units status (or buff) bar?
Lets say I have triggered spell, which damage and ignite all units around the caster. I want to place the small buff icon to their status bar (something like "this unit is ignited; it will take...
I am wondering about this sentence in JassHelper (ver. 0.9.E.0) manual:
(talking about methods)...it is not recommended to use them at all. In next versions the compiler might even raise a syntax error when it finds them.
What does it mean? Or what to use instead of methods? I didn't get it. I...
Hello,
there are some events in game, which I can't register to trigger (I am making map in JASS). I wonder if there is a way to catch the moment, when a player RIGHT-CLICK to item in his inventory (as he wants to drop him or move to another inventory slot). Or am I able to recognize, if player...
Hello,
I wonder if there is a way to pass struct methods as function code it TriggerAddAction(). There is an example:
struct someStruct
local trackable track
method structMethod takes nothing returns nothing
// do some stuff here
endmethod
method structInit takes...
Hello,
I have spell named "Stealth" based on Wind Walk. Let's say that hero will enter the Stealth and then he wants to use another ability. What I am trying to do is to check that spell conditions (in EVENT_UNIT_SPELL_CHANNEL) and if they are not met, stop his cast. But everytime, regardless...
Hello everyone,
I am looking for little help.
I did a targeting system, when your hero (you are controlling only one unit all the time) mark his target by simple righ-clicking. This is just example:
function Targeting_Conditions takes nothing returns boolean
return...
Hello everyone,
I want to make spell which put targeted unit in sleep for some duration. My problem is that units allied with affected one are attacking it -> canceling spell effect. Is there any chance to turn this off (maybe in AI editor or gameplay constants)?
I know that Sleep has field...