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 / help with script (waypoint and shoot)

Author
Message
technotdc
13
Years of Service
User Offline
Joined: 13th Apr 2011
Location:
Posted: 25th Jul 2011 14:42 Edited at: 25th Jul 2011 14:54
Hi.......

I need help whith this script

===============================================================
;Artificial Intelligence Script

;Header

desc = waypoint whith pause

;Triggers

:state=0,waypointstate=0:animate=2,waypointstart
:state=0,waypointstate=1:animate=2,waypointstart
:state=0,waypointstate=3:animate=1,state=10
:state=0,waypointstate=4:animate=2,waypointrandom
:state=0,waypointstate=5:animate=1,state=20



:state=10:state=11,timerstart
:state=11,timergreater=4000:state=12
:state=12:waypointnext,state=0



:state=20:state=21,timerstart
:state=21,timergreater=6000:state=22
:state=22:waypointreverse,state=0

;End of Script

===============================================================


How can i do the enemy shoot to player When I approached????????


note : I put this script in main /shoot10.fpi in shoot field
but dont't shoot

note2: I tried create a new script with this script and shoot10 but I can't do


It's possible make the enemy follow waypoints and shoot ?????????

(sorry my bad english)


Thanks
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 4th Aug 2011 11:00 Edited at: 4th Aug 2011 11:05
This one is effective:-

Character follows a waypoint, if player seen, the character will shoot back. If the character has it's back to player and you shoot and hit it, the character will turn and shoot at the player.

If you move out of sight and also a small distance away, the character will follow the nearest waypoint. maybe add waypoints that link with each other to create a random movement for the character. I am sure it could have been done in less script commands but it works ok!

Add this as the main script:-



Add this as the shoot script:-

technotdc
13
Years of Service
User Offline
Joined: 13th Apr 2011
Location:
Posted: 4th Aug 2011 21:34
Thanks ¡¡¡

Login to post a reply

Server time is: 2024-11-24 06:20:29
Your offset time is: 2024-11-24 06:20:29