1
1337D00D
Guest
Wisp Wheel Workshop!
This is a system that allows you to create wisp wheels with no skill at all.
Requires 1 trigger and KaTTaNa's Local Handle Variables system
The wisp wheels created by this system can even move about.
Two main functions:
Uh.... I'm not sure, but I THINK this makes a wisp wheel.
center - The unit that will be the center of the wisp wheel.
spokeId - The ID of the unit that will be the "wheel" part.
owner - Who owns the units in the wheel?
spokes - How many spokes the wheel will have.
length - How many units will be in each spoke.
degreeIncrement - How far apart each spoke is.
distanceIncrement - How far apart each unit in the spoke will be.
dpi - Degrees per interval, or how fast the wheel rotates. The wheel will rotate counterclockwise if you put in a negative number.
Destroys a wisp wheel.
center - The center of the wheel you want to destroy.
If you are not very experienced in JASS, you can use it in GUI as well.
Just use the function
Custom script: call CreateWispWheel(args....)
Here's the test map.
View attachment WispWheelWorkshop.w3x
If you find a memory leak in the script or there is a problem with it, please tell me right away so I can fix it.
Enjoy.
This is a system that allows you to create wisp wheels with no skill at all.
Requires 1 trigger and KaTTaNa's Local Handle Variables system
The wisp wheels created by this system can even move about.
Two main functions:
Code:
function CreateWispWheel takes unit center, integer spokeId, player owner, integer spokes, integer length, real degreeIncrement, real distanceIncrement, real dpi returns nothing
Uh.... I'm not sure, but I THINK this makes a wisp wheel.
center - The unit that will be the center of the wisp wheel.
spokeId - The ID of the unit that will be the "wheel" part.
owner - Who owns the units in the wheel?
spokes - How many spokes the wheel will have.
length - How many units will be in each spoke.
degreeIncrement - How far apart each spoke is.
distanceIncrement - How far apart each unit in the spoke will be.
dpi - Degrees per interval, or how fast the wheel rotates. The wheel will rotate counterclockwise if you put in a negative number.
Code:
function DestroyWispWheel takes unit center returns nothing
Destroys a wisp wheel.
center - The center of the wheel you want to destroy.
If you are not very experienced in JASS, you can use it in GUI as well.
Just use the function
Custom script: call CreateWispWheel(args....)
Here's the test map.
View attachment WispWheelWorkshop.w3x
If you find a memory leak in the script or there is a problem with it, please tell me right away so I can fix it.
Enjoy.