Hey,
I was searching through the forums for fire/reload system i found some stuff and tried to put them in my map, did exactly as it was but i got few problems.
1. The Unit problem
- The unit equals to marine, therefor i need a unit on the map to select
this is problem to me because i use units from tavern, and im stuck at making it work, if i put "sold unit" instead of marine it doesnt work
2. Reload fails duo to i dont know
- The unit on the map fires 20 rounds and then stops, so i though, hey i need reload ability but got no clue how to make it nor attach it with the trigger or something.
I don't want answers that will solve the problem, tips please i want to learn this for my self.
this is the system:
Map Initialization
I was searching through the forums for fire/reload system i found some stuff and tried to put them in my map, did exactly as it was but i got few problems.
1. The Unit problem
- The unit equals to marine, therefor i need a unit on the map to select
this is problem to me because i use units from tavern, and im stuck at making it work, if i put "sold unit" instead of marine it doesnt work
2. Reload fails duo to i dont know
- The unit on the map fires 20 rounds and then stops, so i though, hey i need reload ability but got no clue how to make it nor attach it with the trigger or something.
I don't want answers that will solve the problem, tips please i want to learn this for my self.
this is the system:
Map Initialization
-
Initialization
-
Events
- Map initialization
- Conditions
-
Actions
- Set Ammo = 20
- Set Reloading = False
- -------- Reloading is requered --------
-
Events
-
Attacking
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Attacking unit) Equal to Marine 0022 <gen>
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Ammo Equal to 0
-
Then - Actions
- Unit - Order Marine 0022 <gen> to Stop
- Trigger - Run Reload <gen> (checking conditions)
-
Else - Actions
- Set Ammo = (Ammo - 1)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Reload
- Events
-
Conditions
- Reloading Equal to True
-
Actions
- Set Reloading = True
- Wait 3.00 seconds
- Set Ammo = 5
- Set Reloading = False