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 / Allies/Follow - Closing the questions!

Author
Message
Smitho
18
Years of Service
User Offline
Joined: 23rd Feb 2006
Location: Blackpool, England
Posted: 12th Apr 2006 01:47 Edited at: 24th Apr 2006 09:02
Okay, everyone will always ask "can you have allies?" and this post will answer their questions...

Q: Can you get allies to help fight enemies?
A: No, the character that will follow you is still classed as an enemy, it just doesnt fire at you...

Q: Can you get allies to aim at enemies and fire at them, even if they dont hit?
A: Not that I know of, no...but then again im still a noob just trying to help out.



The one thing you CAN do is get an enemy to follow you and not fire... I will now teach you how...

Okay, first of all open up notepad (everyones got it!)
Copy and paste this into the pad:

desc = Chase

: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

Then go on File>Save as... Then save your notepad file in something like C;Program FilesThe Game CreatorsFPS CreatorFilesScriptbankplayer or wherever your scripts are (Change text file to all files and type in followplayer.fpi as the filename)

Then, go onto your game and insert an enemy entity, then right click it to preview its properties.

Set the "Main" option to the file you just saved and set "Shoot" to default.fpi in your main scriptbank.

Thats it! Now the enemy will follow you, and aim at you...thats the closest youll get for now!

I hope this helps all of you starting off out there, as I know what a struggle it can be on forums with constant replies to simple questions for others with "OMG you noob!" etc.

Yours in gaming,
Dan

(P.S if ive done anything wrong, please notify me!! Im still starting myself)

*Edit* This script WAS made by merravano, or how ever you spell it... I re-found the original post as credit.

Weeee
Smitho
18
Years of Service
User Offline
Joined: 23rd Feb 2006
Location: Blackpool, England
Posted: 12th Apr 2006 11:25
Sorry, but I forgot to mention that this code is 100%...not mine it was made by a coder by the name meri~ something, sorry I cant remember!

(Can anyone tell me how to edit a post please? )

Weeee
Benjamin A
19
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 12th Apr 2006 20:34
Thanks for the help and explanation.

I'm not a noob but I'm not even sure about 2. It may actually be possible and it's a good idea, just faking the attack.

As for the script, people can save the copying of the message and just use the home.fpi script found in the people folder of the original fpsc scripts. That one works perfectly well.

Assin that one to your characters and they will follow you everywere.

Bored of indoor? Add outdoor to your FPSC games!
http://www.aeilkema.dds.nl/mega/index.html
Need music for your games? Check the above link also!
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 12th Apr 2006 23:49 Edited at: 12th Apr 2006 23:54
Definatly wasn't me...
Merranvo or Mosillivo

I never use Freeze

They can fire their gun, without killing you, but it kinda looks dumb seeing them fire... Sometimes they will just be firing at the wall, so, it is gay.

:state=0,plrdistwithin=500:state=1
:state=1,plrdistfurther=500:followplr

I will link the old health medic too, if needed.
http://www.freewebtown.com/Merranvo/Scripts/Allied/Medic.zip

really, allies are do able, as long as their function is not to kill enemys... once that occurs, it gets messy.

We all have our inner noob.
Join the NJL: We have MORE fun!
When in doubt, blame a mod!
brummel
18
Years of Service
User Offline
Joined: 26th Nov 2005
Location: Sweden
Posted: 13th Apr 2006 11:28 Edited at: 13th Apr 2006 11:28
Ok, OnePost, you better take your schizofrenia pills...



Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 13th Apr 2006 23:25
Yeah,
I am
OnePost
Mosillivo
Merranvo
God
Monster
Jimmy
Souless Demon
Sefak
Megeton Cat
And... well... much more.

We all have our inner noob.
Join the NJL: We have MORE fun!
When in doubt, blame a mod!

Login to post a reply

Server time is: 2024-11-22 03:03:52
Your offset time is: 2024-11-22 03:03:52