help with my TD
Moderator: Cheaters
-
- Old Wrinkly Member
- Posts: 250
- Joined: May 20th, 2007, 5:03 am
- Location: Gages Lake(Da H00d), Illinois
help with my TD
i made a Td but i want it so if a player isnt there no creatures spawn. i know this is really easy but i donno it haha
-
- Forum Staff
- Posts: 926
- Joined: June 3rd, 2007, 8:03 pm
Re: help with my TD
if GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING then [then create ter units however you wanna do this]
That would check for red.
That would check for red.
-
- V.I.P.
- Posts: 332
- Joined: March 4th, 2007, 12:39 am
- Location: United States
Re: help with my TD
You make things too complicated..
Just use a boolean variable, if a player is there, set it to true, and when you want the creeps to spawn, use a condition that checks if the boolean is true/false >.>
Ehh this is eaiser to do in GUI in my eyes

Just use a boolean variable, if a player is there, set it to true, and when you want the creeps to spawn, use a condition that checks if the boolean is true/false >.>
Ehh this is eaiser to do in GUI in my eyes
Doesn't Dekar make the world easier?
"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"
Catch me on Azeroth (U.S. East) - NameSpoofer
-
- Forum Staff
- Posts: 926
- Joined: June 3rd, 2007, 8:03 pm
Re: help with my TD
Complicated? It's very easy to understand and if you just add a loop you don't have to have more then one line of it.namespoofer wrote:You make things too complicated..![]()
Just use a boolean variable, if a player is there, set it to true, and when you want the creeps to spawn, use a condition that checks if the boolean is true/false >.>
Ehh this is eaiser to do in GUI in my eyes


-
- V.I.P.
- Posts: 332
- Joined: March 4th, 2007, 12:39 am
- Location: United States
Re: help with my TD
Ehh, ok.. your right I'm wrong >.<
local integer i=0
loop
exitwhen i>11
GetPlayerSlotState(Player(i))==PLAYER_SLOT_STATE_PLAYING
set i=i+1
endloop
Or w/e, don't have JC atm, or I would just make the whole trigger >.>
local integer i=0
loop
exitwhen i>11
GetPlayerSlotState(Player(i))==PLAYER_SLOT_STATE_PLAYING
set i=i+1
endloop
Or w/e, don't have JC atm, or I would just make the whole trigger >.>
Doesn't Dekar make the world easier?
"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"
Catch me on Azeroth (U.S. East) - NameSpoofer