heres an example using the system http://www.epicwar.com/maps/120400/
and ill post code below too.
i apologize in advance for the monocode, tabs not working in the relpy window thing...
function periodic takes nothing returns nothing...
looks like its working alot better now with this code :)
local unit u = gg_unit_hfoo_0000 //testing unit
local real x = GetUnitX(u)
local real alpha = 0 // angle between normal and z axis
local real mg = 98 //mass*gravity = 9.8*10
local real d // distance
local real y = GetUnitY(u)
local...
Thanks Prozix for the help, i think i understand now and i will try to recode/make a new vector system that will either add the normal + gravity vectors together, or calculate the resultant vector and add that, which ever one works better. will post up tomorrow afternoon... time to get some sleep :p
I dont quite understand what you are doing here.
Shouldn't the 90-alpha be PI - alpha?
since you are using tan and not TanBJ() and using radians would make more sense.
This part here finds the normal
local xyz a = xyz.define(x,y+accuracy) //creating 3 vertices at (x+0,y+30),(x+30,y-30) and (x-30,y-30)
local xyz b = xyz.define(x+accuracy,y-accuracy) // to make a triangle
local xyz c = xyz.define(x-accuracy,y-accuracy) // and then find the normal of the...
Hi guys,
Main Problem...
Creates more (xyz) structs than it destroys.
therefore errors with unable to allocate id to object after count (global integer) reaches 18,000.
Background info and minor problems...
This system i made is meant to simulate a circular object on a slope, so it rolls...
not sure of any examples but you would have to trigger all of your hero abilities and use a damage detection system and then tally each individual damage event for each hero/player. There are lots of damage detection systems you can use under systems in these forums.
there are programs such as "super saver"(<-- not 100% sure its its called that) and other programs that export ingame player/game messages into a txt file. Therefore it is possible.
being able to create a trigger in game would be pretty awsome....event --> condition --> action kinda thing... now that i think about it, perhaps a built in function that will show all the code in a function/trigger in game and its links to other functions and variable use data too
I too have also had this problem before... i reckon its something to do with leaks/periodic events but im not exactly sure.
My suggestion would be to try converting the map from vjass to jass and/or exporting and importing maps data into a new non-newgen or weu created map.
I reckon you should create multiple units of diferent types, this process can be simplified if you use Jass New Gen's object merger which will allow you to basically create your units in the trigger editor by typing a script for each unit, this is what i did when i wanted to make like 50 creeps...
you might wanna try using SetUnitX(unit) and SetUnitY(unit) to move your units
so if you want them to move towards a given angle a which should be angle between target and caster you should run this mulitple times call SetUnitX(u) = GetUnitX(u) + SPEED*CosBJ(a)
and SetUnitY(u) = GetUnitY(u) +...
The black road rpg had something like what you want, but it only works for TBR, there is another program that copies all ingame chat into a notepad and i think Banlist does that too but im not sure. I will reply later with the programs name cause i cant find it atm.
Also i think its impossible...