- Joined
- Apr 23, 2010
- Messages
- 11
Hello.
I'm trying to create a second person camera system + Arrow key movement.
I've been able to create the camera and the arrow movement system to such a level that they are functioning.
The one I'm trying to create now is just an unedited from scratch version which means that it is not a multi-player - yet, (I will edit it later and make it work for multi-player.)
Anyway I've tried with a spell but the arrow key system seems to be blocking out the ordinary attack function which means I'd have to create a spell or use a basic trigger function to make an attack function of my own.
My trigger for it would look like this:
I would appreciate it.
Thank you!
/Rasmus
I'm trying to create a second person camera system + Arrow key movement.
I've been able to create the camera and the arrow movement system to such a level that they are functioning.
The one I'm trying to create now is just an unedited from scratch version which means that it is not a multi-player - yet, (I will edit it later and make it work for multi-player.)
Anyway I've tried with a spell but the arrow key system seems to be blocking out the ordinary attack function which means I'd have to create a spell or use a basic trigger function to make an attack function of my own.
My trigger for it would look like this:
-
Attack
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Attack (Neutral Hostile)
-
(Owner of (Triggering unit)) Equal to Player001[(Player number of (Owner of (Triggering unit)))]
-
-
Then - Actions
-
Set Creep001[(Player number of (Owner of (Casting unit)))] = (Target unit of ability being cast)
-
Selection - Select Creep001[(Player number of (Owner of (Casting unit)))] for Player001[(Player number of (Owner of (Casting unit)))]
-
Unit Group - Pick every unit in (Units currently selected by (Owner of (Casting unit))) and do (Actions)
-
Loop - Actions
-
Custom script: call SetUnitAnimationByIndex(udg_Unit, 5)
-
Custom script: call SetUnitTimeScale(udg_Unit, udg_AnimationSpeed)
-
Sound - Play MetalHeavySliceFlesh1 <gen> at 100.00% volume, attached to (Target unit of ability being cast)
-
Unit - Cause (Casting unit) to damage Creep001[(Player number of (Owner of (Casting unit)))], dealing 12.00 damage of attack type Normal and damage type Normal
-
Wait 0.20 seconds
-
Unit - Wake up Creep001[(Player number of (Owner of (Casting unit)))]
-
-
-
-
Else - Actions
-
-
-

Thank you!
/Rasmus