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 / Sound, hud, and objective script

Author
Message
Trugar
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location: New York
Posted: 11th Jul 2008 00:50
ok when i place this script in a trigger zone which i intended it to be in.

it dosent do anything i hear no sound and the hud doesnt show up. i've looked it over and over again it looks perfect but it apparently isn't.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 11th Jul 2008 01:08
because if when the hud is created it goes to state=1 not the other state=0 statements.

here is the correct script

note:i prefer using hudfadeout rather than hudunshow(better effect)

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Jul 2008 02:35 Edited at: 11th Jul 2008 02:36
No mean to over-shadow, Dar13, but wouldn't this be more accurate to his desires?

I fail to see a need for a "state" condition in the second and third lines, so leaving them out will allow their functionality to carry on throughout the script and possibly allow it to function better.



Aside from a little logic foncusion in your script, you have a very nice scripting style.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Trugar
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location: New York
Posted: 11th Jul 2008 03:23
@ Dar13
so do i but when ever i try to do something fancy it seems to not work for me somehow.

@Plystire
i did not know i could leave out the state command thanks for the mini lesson.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 11th Jul 2008 04:20
@ Trugar first do the basic then do the fancy

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
Gunn3r
18
Years of Service
User Offline
Joined: 12th Jun 2006
Location: Portland, OR
Posted: 11th Jul 2008 07:14
Quote: "foncusion"


I like that word...


Sorry. Just had to point it out...


Gunn3r Games

Login to post a reply

Server time is: 2024-11-24 10:39:17
Your offset time is: 2024-11-24 10:39:17