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 not working for npc follow me!

Author
Message
Hollywood
17
Years of Service
User Offline
Joined: 17th May 2006
Location: name say it all............. or does it?
Posted: 24th May 2006 21:07
http://forum.thegamecreators.com/?m=forum_view&t=79456&b=23 Tht is the thread where i got this code;Artificial Intelligence Script

;Header

desc = Follow Me

;Triggers

:nearactivatable=0:settarget,activatetarget=2
:losetarget=50:freeze,runfpidefault=1
:plralive=0:freeze,runfpidefault=1

:state=0,plrdistfurther=100:state=1
:state=0,plrdistwithin=101:state=2,animate=1
:state=1,plrelevfurther=10,plrcanbeseen=46,plringunsight:freeze,settarget,animate=1,state=0
:state=1:followplr=1,animate=5
:state=1:state=0

:state=2:rotatetoplr,resethead
:state=2:freeze,state=0

:state=4:incframe=6
:state=4,frameatend=6:state=0

:state=5,random=1:state=6,setframe=4
:state=5:state=7,setframe=3
:state=6:incframe=4,strafe=90,rotatetoplr
:state=6,frameatend=4:state=1,animate=1
:state=7:incframe=3,strafe=-90,rotatetoplr
:state=7,frameatend=3:state=1,animate=1

;End of Script
The code is not working for me the npc just shoots me and doesn't even follow me. Maby i put it in the wrong place can someone tell me where to put itand how i make the npc follow me.
Also i want him to talk to me before he follows me how do i do that also. If it is all in the manual please tell me i have already read the manual but might have skipped over some parts.



Hollywood
Hollywood
17
Years of Service
User Offline
Joined: 17th May 2006
Location: name say it all............. or does it?
Posted: 24th May 2006 21:28
I set his rate of fire to 0 and now all he does is stand there.


Hollywood

Wow, are you famous or something?.........Just because I am from Hollywood doesn't mean I am famous...or am I from Hollywood..... am I famous?
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 24th May 2006 21:36 Edited at: 24th May 2006 21:47
I've never done this with an armed NPC because I know they will shoot you. Is should however work with an unarmed NPC.

Testing..... Yes, It does.

As for the talking part, search for talk. There's alot of stuff there.

Crazy Grandpa
Hollywood
17
Years of Service
User Offline
Joined: 17th May 2006
Location: name say it all............. or does it?
Posted: 24th May 2006 21:50
where did you put the script under main or start or destroy?
if it was under main it didn't work for me.


Hollywood

Wow, are you famous or something?.........Just because I am from Hollywood doesn't mean I am famous...or am I from Hollywood..... am I famous?
Hollywood
17
Years of Service
User Offline
Joined: 17th May 2006
Location: name say it all............. or does it?
Posted: 24th May 2006 21:54 Edited at: 24th May 2006 22:23
Talking part worked thanks.
I put the script in every possible place in the artificial area still doesn't work.
I feel kind of stupid because I don't know where to put scripts on the npc profile.


Hollywood

Wow, are you famous or something?.........Just because I am from Hollywood doesn't mean I am famous...or am I from Hollywood..... am I famous?
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 24th May 2006 22:26
The script goes in the entities AI Main.

And it does work for me.

Crazy Grandpa
Hollywood
17
Years of Service
User Offline
Joined: 17th May 2006
Location: name say it all............. or does it?
Posted: 24th May 2006 22:31 Edited at: 24th May 2006 22:32
I put it under the AI main for a u.s. marine unarmed under the main AI, taking the script from my user file to the AI and I test the game and he just stands there.


Hollywood

Wow, are you famous or something?.........Just because I am from Hollywood doesn't mean I am famous...or am I from Hollywood..... am I famous?
Hollywood
17
Years of Service
User Offline
Joined: 17th May 2006
Location: name say it all............. or does it?
Posted: 24th May 2006 22:54
Never mind i figured out the problem i was saving the file as a .txt when i shouls have been saving them as .fpi files thanks for the script.


Hollywood

Wow, are you famous or something?.........Just because I am from Hollywood doesn't mean I am famous...or am I from Hollywood..... am I famous?

Login to post a reply

Server time is: 2024-05-07 15:49:04
Your offset time is: 2024-05-07 15:49:04