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 / enemy follow the player and attack him via his hand????

Author
Message
zombie 47
7
Years of Service
User Offline
Joined: 13th Aug 2016
Location:
Posted: 27th Dec 2016 14:34

hi everybody
i have a question about some script
my question is how i can put in this script like enemy can heart me via his hand
or attack me i try to put runfpi=scriptbank\attack.fpi
but this not work for me

OK the script

;Artificial Intelligence Script

;Header

desc = Followplr and attack by : zombie 47

;Triggers

:state=0,plrdistwithin=600:state=1
:state=1:followplr
:state=1:runfpi=scriptbank\coming soon\attaxkruninfi.fpi

;End Of Script






i mean if can some body make like a simple attack but the enemy is using his hand when he attack me
i find many attack or script but is not work with me
you can get any attack script
for example : in the zombie_apocalypse folder there a many attack you can use it for this script


Important Note :

you have to delete the run fpi line
i mean delete this
:state=1:runfpi=scriptbank\coming soon\attaxkruninfi.fpi



also if you can make the enemy search for me when i go away or when he not see me
and when he find me he is attack me if this hard for you i have a simple search script
the script


;///Search\\\
:state=40,plrcannotbeseen,random=3:etimerstart
:state=40,plrcannotbeseen,random=3,etimergreater=30:rotateheadrandom=50
:state=40,plrcannotbeseen,random=3,etimergreater=40:pivotrandom=55,movefore=10,animate=2
:state=40,shotdamage=1:rotatetoplr
:state=40,noiseheard=60:rotatetoplr
:state=40:state=20









and don,t delete the second line i mean the (followplr)

because if the player go anywhere the enemy can follow him this is very good



and thanks for help
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 28th Dec 2016 18:18
zombie 47
You can't mix scripts that easily without problems. Also the "followplr" command is great, but come with flaws also.
Quote: "for example : in the zombie_apocalypse folder there a many attack you can use it for this script "

Yes, BUT, those scripts are custom only for those characters. They have their own custom animations.
If one doesn't have those characters or scripts no one can help.

Here is a simple "search for player & attack" that I use for stock characters. Only Stock characters!
The "hand slash" animation is actually the "grenade throw" animation, but looks the same.
Attach to something like Scifi character Aiko or Zombie (unarmed) Put up some walls & boxes
for cover. They will search for you, hand attack, if they lose you they will search till your found.

Adjust distance to meet your needs. Remember your zombies most likely wont
work with this. It's just a starting point

My games never have bugs. They just develop random features..
Lots and lots of random features...
zombie 47
7
Years of Service
User Offline
Joined: 13th Aug 2016
Location:
Posted: 28th Dec 2016 21:45
OK thank you
but no way to do like a enemy follow player i mean (enemy follow the waypoint of the player )and attack via his hand
i don't need the search option or search script you can delete the search script
all i need is enemy follow player and attack him via his hand
and thanks for help NCMAKO


ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 29th Dec 2016 12:36
zombie 47
Quote: " if you can make the enemy search for me when i go away or when he not see me "

Ok, I'm confused? So you don't need search in the script?
Here's a simpler version of that one...

If you need character to run toward player, change the code line
at state=1 from "movefore=10,animate=2" to "runfore=1,animate=5"
My games never have bugs. They just develop random features..
Lots and lots of random features...
zombie 47
7
Years of Service
User Offline
Joined: 13th Aug 2016
Location:
Posted: 29th Dec 2016 16:56
OK thank you not bad

Login to post a reply

Server time is: 2024-04-27 05:39:48
Your offset time is: 2024-04-27 05:39:48