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 / script for char. that follows waypoint, then if possible follows player

Author
Message
AzGamer
15
Years of Service
User Offline
Joined: 5th Dec 2008
Location:
Posted: 10th Dec 2008 18:17
Hey everyone, i just TRIED creating a script for a character that follows a player if a player trail exists, if not it will just continue to follow waypoints.



Try it out!

(And yes i am a noob at scripting!)
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Dec 2008 00:44 Edited at: 11th Dec 2008 00:45
It's good to see you're trying to script, but it would be wise to actually test them before posting them up here.

I also suggest you read through some scripting tutorials as there are many errors I see in your script that are rather basic. (And one new one that I haven't seen before, but shouldn't cause any problems... try not to define "desc = " twice in one script. Use comments if you need to make notes)

Also, check out the program linked to in my sig, it may be of MUCH help to you.


The one and only,


Jesper
17
Years of Service
User Offline
Joined: 14th Oct 2007
Location: Hämeenlinna
Posted: 11th Dec 2008 17:06


Try that. It should work, and iy has all animations! You forget them!
AzGamer
15
Years of Service
User Offline
Joined: 5th Dec 2008
Location:
Posted: 11th Dec 2008 17:53 Edited at: 11th Dec 2008 17:55
...hmmmm... well, i think your right about the part where should test them, and i do have the fpi edit pad.

Jesper, thank you for perfecting the code, and i didn't know you had to specify an animation for every movement.

Anyways, yes i will read the tutorial in the communtiy guide.

Thank you both!

Forgot to ask: how do you add coments in codes?
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 11th Dec 2008 20:56 Edited at: 11th Dec 2008 21:00
@AzGamer

use a semi-colon for comments. The highlighted code will be green. In FPI Editpad, you have to update the highlighted text manually after entering new script. If I ever have time I would like to write the code so that it would be highlighted automatically. If I should live so long.




__________________________________________________________
Make life a little easier and use FPI Editpad for your sctripting needs.
We're a proud sponsor of PlyMod 1.07 which includes airmod 0.6.

The past has a lot of memories to hold onto; but, today is chock full of new adventures, and, the future shouts out, "The best is yet to come!" -- TerryC
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Dec 2008 22:16
Quote: "If I should live so long."


Don't say that! You're scaring me.
Be optimistic!


@AzGamer:

Check out the tutorials in the official community guide, they explain much of everything you should need.


The one and only,


Login to post a reply

Server time is: 2024-11-24 16:58:04
Your offset time is: 2024-11-24 16:58:04