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 Product Chat / Clarification of Variables

Author
Message
Ched80
15
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 22nd Jan 2011 08:31
Hi,
I'm a little confused about the variable system available in Stock FPSC.
I've just read the community guide v2 and there are a bunch of variable conditions and actions in there that I thought were only available in PB.
I understand that globalvar is available in stock FPSC, but I didn't think dimvar was nor the internal variable recognition.
Can someone confirm whether these variable comands are available or not? Thanks

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Pirate Myke
16
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 22nd Jan 2011 10:53
They are. you can see an example of them in the water - breathing script in the entitybank\waterScripts folder.
setup a square room and add a trigger zone. in the main AI assign the water script. This can be anywhere on the map.
Place another trigger zone and assign this ones main ai to water - breathing. Set a marker and a light or two and build the test game.

If the water is to high or to low, then you can press the page up or page down key to adjust it. Get the water about half way deep in the level.

Walk to the trigger zone with the breathing script and Crouch in the water. Notice the breath hud in the top left and how it decreases when you are underwater and increases when your head is above water.

Open the water - breathing script to take a look how it was done.
This script works great. Do keep in mind if you use edit pad it will squack a bit because the new 118 commands are not in the database. Turn auto syntex checking off for this script.

Nothing but coffee in my veins 'Insomnia is Coming'
Ched80
15
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 22nd Jan 2011 12:56 Edited at: 22nd Jan 2011 13:03
Excellent news - cheers!

Can we use declared variables with existing actions, such as "state=%NextState"?

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Nickydude
Retired Moderator
19
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 22nd Jan 2011 17:05
Quote: "Can someone confirm whether these variable comands are available or not? Thanks"


they most certainly are, stuff from other mods are slowly finding their way in to the official FPSC.

Login to post a reply

Server time is: 2026-07-01 06:17:37
Your offset time is: 2026-07-01 06:17:37