hgkjfhfdsj
Active Member
- Reaction score
- 55
SOLVED
for some reason why i get a syntax error when i compile this trigger in the line
error
missing ')'
cannot convert real to location
without this line, it compiles ..
i tried
then later putting it back into the Point..but to no avail
any ideas?
edit
however when i did
it compiled....
Trigger:
- Shape
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Channel
- Actions
- Custom script: set udg_xCentre = GetUnitX(GetTriggerUnit())
- Custom script: set udg_yCentre = GetUnitY(GetTriggerUnit())
- For each (Integer A) from 1 to 36, do (Actions)
- Loop - Actions
- Set X = (((2.00 / 3.00) x ((Cos((Real((Integer A))))) x 10.00)) - ((1.00 / 3.00) x (Cos((2.00 x ((Real((Integer A))) x 10.00))))))
- Set X = ((X x 400.00) + xCentre)
- Set Y = (((2.00 / 3.00) x ((Sin((Real((Integer A))))) x 10.00)) - ((1.00 / 3.00) x (Sin((2.00 + ((Real((Integer A))) x 10.00))))))
- Set Y = ((Y x 400.00) + yCentre)
- Unit - Create 1 Missile for (Owner of (Triggering unit)) at (Point(X, Y)) facing Default building facing degrees
- Loop - Actions
- Events
for some reason why i get a syntax error when i compile this trigger in the line
Trigger:
- Unit - Create 1 Missile for (Owner of (Triggering unit)) at (Point(X, Y)) facing Default building facing degrees
error
missing ')'
cannot convert real to location
without this line, it compiles ..
i tried
Trigger:
- Custom script: set udg_Temp_Point = Location(udg_X , udg_Y)
then later putting it back into the Point..but to no avail
any ideas?
edit
however when i did
Trigger:
- custom script: call CreateUnit(GetOwningPlayer(GetTriggerUnit()), 'u001', udg_X, udg_Y, 270)
it compiled....