method M2P takes integer Min returns real
return 0.01 - (this.Min/50000)
endmethod
i tried to use the method above on struct array and for some reason it keeps returning 0.01 even though Min is changed....
is there anything i should know about the use of methods with struct array?
function Movement takes nothing returns boolean
local DATA data = TT_GetData()
local integer i = GetPlayerId(GetOwningPlayer(data.c))
if(DATA[i].side == 1) then //Left
call SetUnitFacing(DATA[i].c,GetUnitFacing(Car[i].c) + 3)
elseif(Car[i].side == 2) then //Right...
i read the vJass manual and i didn't understand the diffrence beetwen scope and library
i need somebody to explain it to me.
Thanks in advance, Doom-Angel.
i just found out that the event Map Initialization is basically a no event in Jass so i was had a few questions about it:
does every trigger without an event runs on initialization?
how do i make the triggers i want to run on initialization to actually run or the opposite way?
please...
i have seen this one:
native TriggerRegisterVariableEvent takes trigger whichTrigger, string varName, limitop opcode, real limitval returns event
and i have a question about it:
can i use I2R in this function?
is there a possibility to make a string break to the next line?
im not talking about showing it separately or use lots of spaces to make it jump a line, im talking about a single string which has the option to be written in 2 lines.
thanks in advance for helpers :thup:
Get Shape Point
this system is made to make things easier for all those who hate doing all this math\geometric stuff and to make it easy to use shapes when using it.
this system might look a bit complicated but it's only because i gave it wide sum of options so you could manipulate your...
k so i have this function:
function Test takes location loc,real distance,real facing,integer position returns location
local real x = GetLocationX(loc)
local real y = GetLocationY(loc)
local real face = ModuloReal(360,facing)
call RemoveLocation(loc)
set face = face -...
i need to stop my unit from being able to perform movement or attack (on it's own) for the duration of the skill but i want still to be able to follow the orders from the trigger without interupption from the pausing or whatever i have to do.
is this possible? and how?
P.S - this skill is...
hi im looking for a certain spell which would would this 2 things:
1) attack based spell (using damage bonus)
2) cooldown is not based on the normal unit attack and could be casted multiple times in a row without any connection to the normal attack speed
if any1 knows of any spell...
i tried creating a trigger which adds a dummy spell to make the unit cast it multiple times (has 1 seconds beetwen each cast) - this spell doesn't cost mana or has cooldown and it's based on BlackArrow.
the unit cast the spell once but for some reason it stops there and won't multi cast and...
a lot of forums has warning systems and i suggest u get one too
5 warning - ban for certain time
could make it easier to make people look at the rules and obey them - what do u think?
hey guys im trying to make my camera to stay on the back of a unit (even when it turns around) and also take the camera back a bit so i could see more with the unit prespctive and also setting the right height for the unit (in case of flying)
i have been trying a few actions but i can't...
function Fire_Wall_Conditions takes nothing returns boolean
return (GetSpellAbilityId() == 'ANcl')
endfunction
function CreateFireWall takes nothing returns boolean
local Data vars = ABCT_GetData()
local integer i = 0
local group g = CreateGroup()
local unit first...
i tried to create bunch of dummies in so it would be creating them all in a big line starting from the target point going to both sides and i want this line of dummies to be vertical to the caster.
now i tried something which works sometimes but sometimes it doesn't and just creates a line...
Is there a way to detect if a unit cannot be created\reach on\to a certain location?
example: a wall in the way,water,some unwalkable terrain and etc'.
thanks in advance :)