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 / There are 2 script I need help with.

Author
Message
Super Gamer Jack
16
Years of Service
User Offline
Joined: 6th Mar 2008
Location:
Posted: 2nd Apr 2008 00:00 Edited at: 2nd Apr 2008 00:07
In the website FPS Free there is a script.;Artificial Intelligence Script
; by xplosys

;Header

desc = Simple Folow and Shoot
;A simple script to give the appearance of allies
;AI using this script can not hurt each other or the player.

;Change the plrdistwithin= distance to suite.
;Add animations for more realism (squat, strafe, etc)

;Triggers

; *** YOU MUST GET WITHIN RANGE TO PICK UP YOUR AI
:state=0,plrdistwithin=200:state=1,rotatetoplr

; *** AI FOLLOWS YOU
:state=1,plrdistfurther=200:animate=5,followplr
:state=1,plrdistwithin=150:freeze,animate=51

; *** Press Z TO ENGAGE AI
:state=1,scancodekeypressed=44:state=3,animate=5

; *** AI REPOSITION TO ENGAGE ENEMY
:state=3:rotatetoplr,rotatey=30,animate=5,runfore=100,rotatey=-30,state=4

; *** RANDOMIZE ANIMATIONS
:state=4,random=1:state=10,setframe=3
:state=4,random=1:state=11,setframe=4

;*** AI RETURNS FIRE
:state=5,ifweapon=1,plrdistwithin=300:useweapon,rundecal=6
:state=5,ifweapon=0:state=6,setframe=6
:state=5,plrdistfurther=200:state=1

; *** AI RELOAD IF EMPTY
:state=6:incframe=6
:state=6,frameatend=6:state=4,reloadweapon,sound=audiobankgunsreload.wav

; *** PLAY ANIMATION
:state=10:incframe=3
:state=10,frameatend=3:state=5
:state=11:incframe=4
:state=11,frameatend=4:state=5

;End of Script.

But I don't know whats wrong when I apply it to a character and run the game it the character just follows and shoot but when you read it says press "Z" to engage the guy but when I press "Z" nothing happens whats wrong. If somthing is wrong can someone change it for me.



;Artificial Intelligence Script

;Header

desc = Shoot to open door

;Triggers

:state=0,shotdamage=1:state=1
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff

;End of Script


When I shoot the door nothing happens it just acts as a fake door help please.



Thank you
Super Gamer Jack

Login to post a reply

Server time is: 2024-11-27 23:11:09
Your offset time is: 2024-11-27 23:11:09