1
2
ID:171391
Oct 2 2004, 4:08 am
|
|
Hey how i do code so when say everyone who is T=1 dies it reboots?
|
Oct 2 2004, 4:26 am
|
|
Use
|
I'm going to guess you mean "How do I make it so when everyone with T=1 dies, the game reboots?"
Basically, you should probably make a proc that checks all the players in the world, checks if their in Team 1 (Thats what T stands for, right?), and then checks if thier NOT dead. If they are not dead, var/A = 1. after all players have been checked, if A is 1, someone is alive. If A is 0, then all players on team 1 are dead and the world should reboot. this should do the trick: proc You may need to tweak that a bit, but I'm pretty sure that will work |
In response to DarkCampainger
|
|
DarkCampainger wrote:
I'm going to guess you mean "How do I make it so when everyone with T=1 dies, the game reboots?" > proc You may need to tweak that a bit, but I'm pretty sure that will work hmmm i can copy and paste :( |
In response to Dalga Productions
|
|
hmmm don't work
proc |
In response to CrazyFighter
|
|
It should work...
|
In response to Dalga Productions
|
|
Dalga Productions wrote:
It should work... doesent |
In response to Dalga Productions
|
|
T means terrorist?
|
In response to DarkCampainger
|
|
yeah and i had CT for Counter-Terriots i really need for my cs game
|
In response to CrazyFighter
|
|
mob I think thats right... I changed some things in the death proc. |
In response to DarkCampainger
|
|
DarkCampainger wrote:
> mob I think thats right... I changed some things in the death proc. works but when they day it says CrazyFighter was killed by 0! |
In response to CrazyFighter
|
|
CrazyFighter wrote:
DarkCampainger wrote: > > mob No Put usr in proc, ungh! - Lummox JrI think thats right... I changed some things in the death proc. --Goz |
In response to CrazyFighter
|
|
can I see where the death proc is called?
|
In response to DarkCampainger
|
|
DarkCampainger wrote:
can I see where the death proc is called? The simple problem that was pointed out here: [link]. You also are telling him to use user in procs which is a no-no. I'd suggest reading up on http://www.byondscape.com/ascape.dmb/LummoxJR.2002-1104/ before helping people with procs because you give them wrong information. --Goz |
In response to Goz
|
|
I left usr there because I didn't know where it was called and what var represented the person who shot M.
|
In response to DarkCampainger
|
|
DarkCampainger wrote:
can I see where the death proc is called? what you mean? |
In response to CrazyFighter
|
|
where do you call death() when a player takes damage. I'm guessing it's in the bullet's Bump()code.
|
In response to DarkCampainger
|
|
DarkCampainger wrote:
where do you call death() when a player takes damage. I'm guessing it's in the bullet's Bump()code. yeah Shoot() |
In response to CrazyFighter
|
|
CrazyFighter wrote:
DarkCampainger wrote: Shoot() ummm... thats not so great. As you have it right now, the bullet only lasts for .5 seconds and theres a better way to do the icon_state with flick() I also don't see where death() is called. Could you post the lines where death() is actually called? |
In response to DarkCampainger
|
|
DarkCampainger wrote:
CrazyFighter wrote: > Shoot() ummm... thats not so great. As you have it right now, the bullet only lasts for .5 seconds and theres a better way to do the icon_state with flick() woops sorry got wrong part obj |
1
2