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 would I spawn a HUD message with an item?

Author
Message
Toffeemouse
14
Years of Service
User Offline
Joined: 29th Apr 2010
Location: United Kingdom
Posted: 22nd Mar 2012 02:28
I have a health pack that spawns randomly between 1-8 minutes.

Every time it spawns I would like to display a short 10 second message.

How do I achieve this?



Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 22nd Mar 2012 23:16
You could use a combination of etimers and hudshow.
What have you tried?

maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 26th Mar 2012 16:47 Edited at: 26th Mar 2012 16:51
simply add to your pack-mainscript hud-definition in state=0, start timer in state=1 and loop state=2 to x. add :etimergreater=10000:hudunshow=x, done.

when you dont know wich commands to use, look into other scripts that show timed huds and copy the needed lines out of there.

bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 26th Mar 2012 19:03
Quote: "when you dont know wich commands to use, look into other scripts"


An excellent way to learn scripting whatever you're trying to achieve...

Login to post a reply

Server time is: 2024-11-24 03:01:05
Your offset time is: 2024-11-24 03:01:05