I want to do ice escape (slide map). Please look what do not right in my triggers:
Event:
TriggerAddEventUnitRegion((UnitLastCreated()), Ice Smooth,true)
Local Variables:
a=(UnitGetFacing((EventUnit())))) <fixed>
x=(UnitGetPosition((UnitLastCreated()))) <point>
Actions:
SetVariable(a, (UnitGetFacing((EventUnit()))))
SetVariable(x, (UnitGetPosition((EventUnit()))))
Repeat Forever()
actions:
Wait(0.001 c_timeGame)
UnitSetPosition((UnitLastCreated()), (PointWithOffsetPolar(x, 0.1, a)), true)
When start the map and unit go on ice,he just walks on ice and there is a lot of mistakes "can not be obtained unit of parameter unitsetposition (value 0,0?)
Done
I want to do ice escape (slide map). Please look what do not right in my triggers:
Event:
TriggerAddEventUnitRegion((UnitLastCreated()), Ice Smooth,true)
Local Variables:
a=(UnitGetFacing((EventUnit())))) <fixed>
x=(UnitGetPosition((UnitLastCreated()))) <point>
Actions:
SetVariable(a, (UnitGetFacing((EventUnit()))))
SetVariable(x, (UnitGetPosition((EventUnit()))))
Repeat Forever()
actions:
Wait(0.001 c_timeGame)
UnitSetPosition((UnitLastCreated()), (PointWithOffsetPolar(x, 0.1, a)), true)
When start the map and unit go on ice,he just walks on ice and there is a lot of mistakes "can not be obtained unit of parameter unitsetposition (value 0,0?)