Aww
I just want an answear to my question
"Must precede an input/output/persistent variable which has a subtraction operator. Returns the current value of the variable minus the value of the variable at the end of the last execution. Note: Acceleration == $Velocity only when intervals are one second apart. "
And I don't get it
David Bowie is very disappointed in you!
You probably didn't know that David Bowie is very disappointed in you, but...now you do. And no, we don't know why
"If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
-- Niels Bohr
@Matte: Sigh.
@MixZim: "Returns the current value of the variable minus the value of the variable at the end of the last execution." $A == A - PrevA
Thanks, now I get it =)
Any answear how to get my request working?
I need interval() to make E:keyUse() change from 0-1
with interval() the sound is repeating
with !clk() no sound...
David Bowie is very disappointed in you!
You probably didn't know that David Bowie is very disappointed in you, but...now you do. And no, we don't know why
if (Sound & $Sound) {
soundPlay(Index, Length, String)
}
Sound being a variable (Input, persist, whatever)
Edit:
Fuck it I'll just give you the code for what you wanted in the post above.
Code:interval(10) A = owner():keyUse() if (A & $A) { soundPlay(1, 0, "file/path") }
Two have been posted in this thread already. (just one works though heh)
http://www.wiremod.com/forum/help-su...tml#post124379
EDIT:Nicolai's works too
Try this:
Code:@persist E:entity Use runOnTick(1) E=owner() Use=E:keyUse() if ($Use>0) {E:soundPlay(1,1,"Whatever")}
EDIT: Wah! Triple ninja'd
Last edited by Matte; 08-07-2009 at 04:06 PM.
"If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
-- Niels Bohr
Yep, it works perfectly. Exactly how I wanted it
Thank you for the support
David Bowie is very disappointed in you!
You probably didn't know that David Bowie is very disappointed in you, but...now you do. And no, we don't know why
Bookmarks