| 10-11-2007, 06:13 AM | #1 |
Ok, this is really noobish but I followed the advanced knockback tut in the jass/ai tut section and I am trying to call the function I made with JASS:call Knockback(GetEnumUnit(), 400, Deg2Rad(GetUnitFacing(GetEnumUnit())), 5, 90, 0, "", "") which calls JASS:function Knockback takes unit u, real d, real a, real w, real r, integer t, string s, string p returns nothing But nothing happens when I do this. I checked some other stuff but it seems like this is the way to do it. What am I noobin up? |
| 10-11-2007, 06:38 AM | #2 |
Nothing, as far as I can tell. You should replace this: Deg2Rad(GetUnitFacing(GetEnumUnit())) with this: GetUnitFacing(GetEnumUnit())*0.01745. It's possible his tutorial has a bug in it. I'd test but I can't run vJASS code. Try throwing in some debug messages in the timer callback and the actual function to see if the timer is actually running, and/or what the values are in the callback. |
| 10-11-2007, 07:42 AM | #3 |
Ok I fixed it, there was an error in converting a real to an integer in the code that was halting the function. Thanks Pyro! |
