
Originally Posted by
grandpapolly
I tested the code I posted above on a server. It worked. I went back to that same server and am trying to get a code for this to work. But I can't seem to do it. So the server has the same wiremod svn settings, etc. It does support E:soundPlay().
I posted how to do in my above post.
This one will start playing soon as you spawn the chip:
Code:
@name Something
if(first()) {owner():soundPlay(0,0,"Sound File")} This one will start playing when you move, and stop playing when you stop moving.
Code:
@name Something
@persist P
interval(1)
P = sign(owner():vel():length())
if(P&$P) {owner():soundPlay(0,0,"Sound File")}
if(!P&$P) {soundPurge()}
Bookmarks