ZZY
New Member
- Reaction score
- 1
How can i make so 2 units can use the same point variable at the same time? when i cast a skill and then i have another unit cast it, unit a stops at what ever point in casting he is at and unit b starts!:banghead:
Use an array based on the number of units.
Every time a unit casts a spell check to see if an array is empty, and if it is use that point as the temp point. I would be able to support like 8000+ casts at a time.
Use an array based on the number of units.
Every time a unit casts a spell check to see if an array is empty, and if it is use that point as the temp point. I would be able to support like 8000+ casts at a time.
Yeah, but then when an ability is used that uses the point, check to see if the position of the array that your using is empty, if it is overwrite it, if not assign a new point in a new array position.
this should work without arrays
you dont have waits inside your loop, and triggering unit is a local variable... so this should work just fine when it is cast multiple times at once
opps sorry wrong skill
Trigger:
- Set ViciousCaster = (Casting unit)
Should be:
Trigger:
- Set ViciousCaster = (Triggering Unit unit)
opps sorry wrong skill
Trigger:
- Set ViciousCaster = (Casting unit)
Should be:
Trigger:
- Set ViciousCaster = (Triggering Unit unit)
No, all he has to do is change the event to "Starts the effect"