Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / How apply a Loopsound to a Loopanimati0n

Author
Message
the italian
16
Years of Service
User Offline
Joined: 11th Sep 2008
Location: Cremona Italy
Posted: 8th Jan 2009 18:20
Hi to all ,I have made an Animated Entity (my rocking horse now rocking really )it work very right . Now I have in audiobank/user his sound.
But how can I apply a Loopsound to my Entity

The Fpe





The fpi



Thanks a lot
If someone can help me I quote Him when I relase the model

bye

oldboy of 40 years old
SikaSina Games
16
Years of Service
User Offline
Joined: 5th Dec 2007
Location: Reading, UK
Posted: 8th Jan 2009 18:29
Remove STATE=1 and add LOOPSOUND=[sound-directory].

-FCV

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 8th Jan 2009 18:34
Quote: ":state=0:animate=1,plrdistwithin=10:state=1"


I'm not sure what you're trying to do. You have a condition (plrdistwithin=10) in the action part of the script.

If you want the animation and sound to start when the player is within 100 (10 doesn't normally work. The player would have to be standing directly on top of it to get within 10) then try this:


If that's not what you want, then ask again?

Best

the italian
16
Years of Service
User Offline
Joined: 11th Sep 2008
Location: Cremona Italy
Posted: 8th Jan 2009 19:56
Wowowow !!!!!! Very good !!
Thanks a lot !!!!!!! FCV and the Magician Xplosys
Only another thing.......Is possibble give it only 5 seconds to Loopanimation and Loopsound ??

Best...

oldboy of 40 years old
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 9th Jan 2009 00:07
Thanks, I'm glad that worked for you, but the real magicians are Conjured and Plystire. I just dabble in the black art of fpi. LOL

Of course, to get only 5 seconds you'll have to use a timer.



I'm not sure about the animate=0. It should probably be your "idle" animation.

Alternatively, you might use "suspend".



That should disable the entity, stopping all scripts, but leave it visible.

Best.

the italian
16
Years of Service
User Offline
Joined: 11th Sep 2008
Location: Cremona Italy
Posted: 9th Jan 2009 12:04
Hi
I have try your last script,it does not work ...forget something ?
Thanks

simo

oldboy of 40 years old
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 9th Jan 2009 13:50 Edited at: 9th Jan 2009 13:58
Yes, I think I did. LOL



or



Try that.

Best.

the italian
16
Years of Service
User Offline
Joined: 11th Sep 2008
Location: Cremona Italy
Posted: 9th Jan 2009 23:58 Edited at: 10th Jan 2009 00:03
Hi,

Work the First , I use it

Thanks a Lot

bye From ITALY

Simon

oldboy of 40 years old

Login to post a reply

Server time is: 2024-11-24 18:35:59
Your offset time is: 2024-11-24 18:35:59