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