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 / Need a little help with this target script

Author
Message
Anigma
13
Years of Service
User Offline
Joined: 25th Mar 2011
Location:
Posted: 6th Apr 2011 08:40
Hopefully someone can fill in the last missing piece I need.

I downloaded Heltor's free shooting range target from the TGC store for a shooting range level I'm making. What I wanted it to do was this:
1. Appear and turn towards the player (it has a built in animation for this)

2. Progress along a waypoint path until destroyed.

3. Respawn back at the beginning point.

So far so good, got that to work except for one small thing. What I can't seem to figure out is how to make it to stay at frame 50 or so as it traverses the waypoints - that way it will remain facing the player as it goes. Instead what happens is the animation loops, so it turns towards the player, moves along the waypoints and then it turns back sideways, then towards the player, then sideways, etc. It's kinda cool, adds a bit of difficulty I suppose, but it's not what I wanted.

I tried setframe=50(or 1 or 100 or any number in between) but it seems to sit at frame 1 as it moves along the waypoints no matter what value I set there. Removing that line allows the animation to loop, which is better than not turning to face the player at all, which is what it does when I use setframe. I think this is because the waypoint routine overrides the animation frames - or at least that's what it seems to be doing.

Here's the script I've got so far:



Any ideas on how to leave it at frame 50 as it moves along? I suppose I could edit the FPE file and add a second animation from frame 50 to frame 50, and just use Animate=1 but that seems a bit wonky to me - I would think that I should be able to do this all from the FPI script. Hopefully one of you scripting gurus can get me pointed in the right direction.

Thanks for the help guys!
-Phil
Anigma
13
Years of Service
User Offline
Joined: 25th Mar 2011
Location:
Posted: 7th Apr 2011 21:51
Heh, no takers huh?

Well I solved it by editing the FPE file and adding a second animation. So if anyone else has this same issue in the future, well, there you go.

Login to post a reply

Server time is: 2024-11-24 11:29:38
Your offset time is: 2024-11-24 11:29:38