- Joined
- Jul 24, 2009
- Messages
- 5,630
I'm having an issue with a Timer in my map, Hostile Territory.
Basically, when you fire a weapon, it is supposed to start a Timer (it's MPI, ie. there's a Timer for each player). This action is found in the triggers:
Character Control\Fire
Character Control\Switch
Character Control\Action
Map systems\Map Setup
will add all the MPI 'Timer[] Expires' events to this trigger;
Character Control\Reload
Somehow, whenever you're not playing as Player 1 Red, the first time you shoot/switch weapons/pick up a weapon, is the ONLY time you can ever get a bullet out of your unit within that round.
I know it is linked to the trigger Character Control\Reload. I discovered this by placing a debug message, which only appears for Player 1 Red.
Helpers will receive +4 rep.
Basically, when you fire a weapon, it is supposed to start a Timer (it's MPI, ie. there's a Timer for each player). This action is found in the triggers:
Character Control\Fire
Character Control\Switch
Character Control\Action
-
Set wep_reloading[(Player number of (Owner of (Triggering unit)))] = True
Map systems\Map Setup
will add all the MPI 'Timer[] Expires' events to this trigger;
Character Control\Reload
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
-------- Actions... --------
-
Trigger - Add to Reload <gen> the event (Time - wep_reloadtimer[(Integer A)] expires)
-
-
-
Reload
-
Events
-
Conditions
-
Actions
-
For each (Integer B) from 1 to 10, do (Actions)
-
Loop - Actions
-
Set temp_int = (Integer B)
-
Custom script: if GetExpiredTimer() == udg_wep_reloadtimer[udg_temp_int] then
-
Game - Display to (All players) the text: hey
-
Set wep_reloading[temp_int] = False
-
Custom script: endif
-
-
-
-
Somehow, whenever you're not playing as Player 1 Red, the first time you shoot/switch weapons/pick up a weapon, is the ONLY time you can ever get a bullet out of your unit within that round.
I know it is linked to the trigger Character Control\Reload. I discovered this by placing a debug message, which only appears for Player 1 Red.
Helpers will receive +4 rep.