| 09-26-2004, 04:48 AM | #1 |
Well there is probably a really simple explanation to why this isn't working but I have no idea why it isn't.... Thanks if you help Edit: Oh BTW the actual problem is it isnt respawning the gunz.. lol. All this trigger is meant to do is respawn a gun 15 seconds in the random area (the spawning regions) after it was picked up.. but no guns respawn (btw the first guns are placed on the map in another trigger). Code:
Spawning
Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to Flamethrower
Then - Actions
Wait 15.00 seconds
Item - Create Flamethrower at (Random point in Flamethrower Spawn <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to Ice Blaster
Then - Actions
Wait 15.00 seconds
Item - Create (Item-type of (Item being manipulated)) at (Random point in Ice Blaster Spawn <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to Lightning Energy Launcher
Then - Actions
Wait 15.00 seconds
Item - Create (Item-type of (Item being manipulated)) at (Random point in Lightning Energy Launcher Spawn <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to Rocket Launcher
Then - Actions
Wait 15.00 seconds
Item - Create (Item-type of (Item being manipulated)) at (Random point in Rocket Launcher Spawn <gen>)
Else - Actions
Do nothing |
| 09-26-2004, 07:28 AM | #2 |
If i read that right then when you pick up an item it will create a unit in a reagon despite if there is one there or not. But if it is not spawning at all then maybe the region is 2 small. I doubt it tho. |
| 09-27-2004, 03:25 AM | #3 | |
Quote:
Make it so that each If/Then/Else is seperate rather than in each other. Something like this: Code:
Spawning
Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to Flamethrower
Then - Actions
Wait 15.00 seconds
Item - Create Flamethrower at (Random point in Flamethrower Spawn <gen>)
Else - Actions
Do Nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to Ice Blaster
Then - Actions
Wait 15.00 seconds
Item - Create (Item-type of (Item being manipulated)) at (Random point in Ice Blaster Spawn <gen>)
Else - Actions
Do NothingSee the difference? |
