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 / Waypoint Scripting Problem

Author
Message
Blahguy
14
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 13th Dec 2010 04:21
I am trying to make it so that a character will follow a waypoint, if he sees me, start shooting. This is easy enough, but what I am trying to get the character to do is go back to the waypoint if I run away A.K.A, he can't see me. I can't get that part to work.

Here's the .fpi file for the character's Main propery


And here is the code for the characters Shoot property


Any help at all is greatly appreciated as I am very n00bish!
Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 13th Dec 2010 11:58 Edited at: 13th Dec 2010 12:00
It's pace10.fpi and it resides in the people\ folder so your path is incorrect.

Change these :
:state=1,plrcannotbeseen:waypointstart,runfpi=pace20.fpi

:state=2,plrcannotbeseen:runfpi=pace20.fpi

to these:
:state=1,plrcannotbeseen:waypointstart,runfpi=people\pace10.fpi

:state=2,plrcannotbeseen:runfpi=people\pace10.fpi

Unless you are using a differently named script,this should do it.

Blahguy
14
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 13th Dec 2010 15:56
But my custom scripts both reside within the people folder, so wouldn't I not need to provide the "people/" in the runfpi command?
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 13th Dec 2010 20:31
No, because the runfpi uses scriptbank as the directory, the placement of the script that calls runfpi has no effect whatsoever

I'd change the world, but I don't have the source code
R.I.P. heltor, we will miss you
Seth Black
FPSC Reloaded TGC Backer
20
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 13th Dec 2010 20:41 Edited at: 13th Dec 2010 20:41
...scriptbank is hardcoded to always be the default .fpi script directory.

You must always include subfolders (IE: people, destroy, or custom folders of your
choice)
when referencing a script in .fpe and .fpi files.

Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 13th Dec 2010 20:43
I would have replied otherwise.I would have encouraged the OP to try instead of ask questions...it really doesn't take much effort at all.

But yes,you must include the sub-folder.

Login to post a reply

Server time is: 2025-06-04 21:10:23
Your offset time is: 2025-06-04 21:10:23