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 / Check Animation Keyframes AI?

Author
Message
Anja Viotile
17
Years of Service
User Offline
Joined: 20th Nov 2007
Location: Denmark
Posted: 19th Mar 2008 15:40
hello. im doing an animated entity
and within a sertant range of frames
i want it to hurt the player if she/he is close enough

Is there someway to check in statement if the animation is
between 2 frames (etc, min 35 - max 75)

Tia
Anja Viotile

Visit us at
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 19th Mar 2008 20:43
Found these two in the manual, they look like exactly what you're lookin for.

Quote: "FRAMEWITHIN=X Y
is true when animation X is within frame Y

FRAMEBEYOND=X Y
is true when animation X is beyond frame Y"



Good luck!


The one and only,
~PlystirE~

Anja Viotile
17
Years of Service
User Offline
Joined: 20th Nov 2007
Location: Denmark
Posted: 19th Mar 2008 23:00
yeah it works thank you

state=1,FRAMEBEYOND=0 35,FRAMEWITHIN=0 75:
then it does it correct...

Thanks again

Visit us at
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 19th Mar 2008 23:40
Thanks for bringing this up as I have already started to think of the possibilities.

BTW, I'm glad something works with the scripting conditions. More often than not a condition seems not to work when trying it for the first time.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Mar 2008 00:11
Lol, Flatlander, when coding it never seems to work the first time, but after enough debugging and reworking, you'll get to that point.


The one and only,
~PlystirE~

Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 20th Mar 2008 00:24
That isn't exactly what I was referring to but you are so right. I've been programming for almost 40 years now and I can attest to that. :LOL: I was referring to some of the conditions and actions that have been released in the manual but in fact are not worakable but come to find out are on a todo list; such as "entitywithinzone" and "anywithinzone" I certainly hope that version 1.09 will contain all those on the todo list. I have literally spent hours trying to figure out how those two works and why a script doesn't work that came with FPSC. So, when I said that, even though it has a double meaning, I was thinking of my current issues.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Mar 2008 00:32
Quote: "such as "entitywithinzone" and "anywithinzone""


Actually, "anywithinzone" is a working command. It will return TRUE is ANY entity is inside the zone, and if no entities are in the zone, then it will be false. (But be careful since this will include a lot of unnoticeable entities, such as decals)

"entitywithinzone" looks to be the only scripting command that was not finished.

I've replied to your issue with a possible solution, using a command that's not listed in the manual (for good reasons, I suppose)


The one and only,
~PlystirE~

Login to post a reply

Server time is: 2024-11-24 06:10:03
Your offset time is: 2024-11-24 06:10:03