
sierra117
Joined: Jan 10, 2008
If sex is good exercise, why are there fat sluts?
|
Posted: Apr 24, 2009 07:41 PM
Msg. 1 of 10
is it possible to stop a continuous script? and can someone tell me on how to do it. since it would help alot for me...Thanks!
|
|
|

Polamee
Joined: Feb 25, 2008
MP2SPMT's founder
|
Posted: Apr 24, 2009 08:56 PM
Msg. 2 of 10
Lodex explained this to me sometime back, it involves global booleans. Kudos to Lodex for explaining. (global "boolean" continuouscript false ) Place this sythax first. Then place this in a startup or dormant script when you want your continuous script to start: (set continuouscript true) Then, the continuous script should look like this: (script continuous sierra (if continuouscript (begin (insert stuff here) ) ) ) Then, set the global to 'false' to stop the continuous script. Edited by Polamee on Apr 24, 2009 at 09:08 PMEdited by Polamee on Apr 24, 2009 at 09:24 PM
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Apr 24, 2009 09:01 PM
Msg. 3 of 10
Basically, you can't actually stop a continuous script. But, you can stop a continuous script from actually running any commands by testing for a variable being a certain value before continuing, which is what Polamee's post tells you how to do.
|
|
|

sierra117
Joined: Jan 10, 2008
If sex is good exercise, why are there fat sluts?
|
Posted: Apr 24, 2009 09:45 PM
Msg. 4 of 10
thanks! what i wanted is when the play is in the trigger volume the ai spawn and then where your out they dont spawn. So you cant see them actually appear from nowhere... its in the a50 muster.
EDIT: what if i have other continuous script that i dont want to be disabled from doing what there supposed to do. Like a "anti dev" script. I have one but if i set the global to false wouldn't the "anti dev" script go false aswell? Edited by sierra117 on Apr 24, 2009 at 11:07 PM
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Apr 25, 2009 11:56 AM
Msg. 5 of 10
Quote: --- Original message by: Me KS Basically, you can't actually stop a continuous script. Thats acualy a lie. Read HS_doc lol (sleep {short} [{script}]) pauses execution of this script (or, optionally, another script) for the specified number of ticks.of course, I myself prefer variables to stop things myself, but you CAN if you put a pointlessly huge number in how long the script sleeps for lol. so, (sleep 9999999999999999999999999 bob) edit: GRRRR why does halomaps no longer accept the > < in the reverse order without making the contents disaper? Edited by kirby_422 on Apr 25, 2009 at 11:57 AM
|
|
|

sierra117
Joined: Jan 10, 2008
If sex is good exercise, why are there fat sluts?
|
Posted: Apr 25, 2009 08:08 PM
Msg. 6 of 10
thanks kirby... I forgot about that lol. I read it all the time but i never thought of that. :|
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Apr 26, 2009 01:23 PM
Msg. 7 of 10
Quote: --- Original message by: kirby_422Thats acualy a lie. Read HS_doc lol (sleep {short} [{script}]) pauses execution of this script (or, optionally, another script) for the specified number of ticks.of course, I myself prefer variables to stop things myself, but you CAN if you put a pointlessly huge number in how long the script sleeps for lol. so, (sleep 9999999999999999999999999 bob) It's not a "lie". And I've read HS_Doc plenty of times. Nowhere does it have a command that "stops" a script completely. The word for the "sleep" command is "pause". And "pausing" doesn't equate to "stopping". Not even with a really huge number, because it's still finite and will eventually continue like L0d3x said, even if it continues years in the future. Edit: But, if you do want to at least pause the script permanently, a huge number isn't the way to go. Just use "sleep_until" and stick a boolean in that will never be true, like: (sleep_until (= 0 1)) Edited by Me KS on Apr 26, 2009 at 01:28 PM
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Apr 26, 2009 08:54 PM
Msg. 8 of 10
Quote: --- Original message by: Me KS And "pausing" doesn't equate to "stopping". So, what is the first part of a pause then? its stopping. a Pause is a stop for a set period of time. Also, where did he say he wanted it stoped for more than a year? whos gonna play for that long either? I already said myself that I like using variables, but I was proving you wrong that there was other ways to stop a script progress.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Apr 26, 2009 09:37 PM
Msg. 9 of 10
Not necessarily. Argue with the people who make the DVD players. The pause button merely freezes the screen in place. The stop button makes it so that you can't return to the position you were before. In essence, you can't restart a stopped script without calling it again, but you can resume a paused script.
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Apr 26, 2009 10:42 PM
Msg. 10 of 10
Quote: --- Original message by: kirby_422 So, what is the first part of a pause then? its stopping. a Pause is a stop for a set period of time. Also, where did he say he wanted it stoped for more than a year? whos gonna play for that long either? I already said myself that I like using variables, but I was proving you wrong that there was other ways to stop a script progress. Look, I completely agree that you can basically stop a script with a very long "sleep" period since no one would play for such a long period of time, like you said. I'm not arguing against that. I even acknowledged your point by offering an even better way to "stop" a script by your definition that actually would never continue (it would keep checking the expression every second though, so it's still not stopped). I'm only disagreeing with you on the purpose of the command. At the end of the day, does the command for pausing stop the script? No. It pauses. Because that's what it's supposed to do. Is there any command that will truly stop the script permanently no matter how much time passes? No. That's all I'm arguing. I never "lied", and I will stand by that. Also, I used the year reference just to emphasize my point that the script will continue at some point in time and is not technically stopped because of that, not because I honestly thought anyone would sit and play one map for a year.
|
|
|