| 11-26-2007, 10:37 AM | #1 |
In the map im making I need to make my unit bounce off other units during the course of a "jump" action done with HINDYHAT's particle system. I was wondering if anyone had a custom collision function for this? Edit: Thanks for all your help and by custom collision function I meant the things that happen on collision not the detection. |
| 11-26-2007, 03:13 PM | #2 |
Collision is always a part of system as I know. There are no functions for that. |
| 11-26-2007, 09:08 PM | #3 |
If there are no functions, then how did infrane make sure you couldn't bounce through trees? |
| 11-26-2007, 09:10 PM | #4 |
He wrote his own functions, there are no internal or native collision functions in the use that you're referring to. |
| 11-26-2007, 09:27 PM | #5 |
Isn't there already a function to do that in my system? Just do: JASS:call <particlevariablename>.SetCollisionFunc("CollisionBounce") Anyway I'm making another one now, using OOP and alot more accurate calculations. Will be alot easier to do stuff like this... |
| 11-27-2007, 12:48 AM | #6 |
In jass u can write ur own functions? is there limitations on this o can u do anything? |
| 11-27-2007, 02:17 AM | #7 |
You can declare your own functions like this: JASS:function YourFunctionName takes <argument1type> <argument1name>, <argument2type> <argument2name>, <argument3type> <argument3name> ... returns <returntype> // Add function body here. endfunction JASS:function YourFunctionName takes nothing returns nothing // Add function body here. endfunction There are loads of tutorials that can explain this better than I did, but anyway that's totally off-topic to this thread's subject. On the other hand, I can't get this damn collision to work! T_T |
