- Joined
- Apr 13, 2012
- Messages
- 110
a simple wall ability
but this is not the problem..
the problem is that if you cast 2- 3 times the hole game gets really laggy....and the trigger looks fine to me
-
skillwall
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to wall
-
Actions
- Set wallpoint = (Target point of ability being cast)
- Set wallcasterpoint = (Position of (Triggering unit))
- Set anglewallcast = (Angle from wallpoint to wallcasterpoint)
- Set wallpointoffset0 = (wallpoint offset by 0.00 towards anglewallcast degrees)
- Set wallpointoffset120 = (wallpoint offset by 120.00 towards (anglewallcast + 100.00) degrees)
- Set wallpointoffset220 = (wallpoint offset by 220.00 towards (anglewallcast + 100.00) degrees)
- Set wallpointoffsetplin120 = (wallpoint offset by -120.00 towards (anglewallcast + 100.00) degrees)
- Set wallpointoffsetplin220 = (wallpoint offset by -220.00 towards (anglewallcast + 100.00) degrees)
- Unit - Create 1 Earth-Fury Tower for Player 1 (Red) at wallpointoffset0 facing Default building facing degrees
- Unit - Create 1 Earth-Fury Tower for Player 1 (Red) at wallpointoffset120 facing Default building facing degrees
- Unit - Create 1 Earth-Fury Tower for Player 1 (Red) at wallpointoffset220 facing Default building facing degrees
- Unit - Create 1 Earth-Fury Tower for Player 1 (Red) at wallpointoffsetplin120 facing Default building facing degrees
- Unit - Create 1 Earth-Fury Tower for Player 1 (Red) at wallpointoffsetplin220 facing Default building facing degrees
- Custom script: call RemoveLocation (udg_wallpoint)
- Custom script: call RemoveLocation (udg_wallcasterpoint)
- Custom script: call RemoveLocation (udg_wallpointoffset0)
- Custom script: call RemoveLocation (udg_wallpointoffset120)
- Custom script: call RemoveLocation (udg_wallpointoffset220)
- Custom script: call RemoveLocation (udg_wallpointoffsetplin120)
- Custom script: call RemoveLocation (udg_wallpointoffsetplin220)
-
Events
but this is not the problem..
the problem is that if you cast 2- 3 times the hole game gets really laggy....and the trigger looks fine to me