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.

Author
Message
mgarand
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: The Netherlands
Posted: 23rd Dec 2007 12:31
i knowe that it is a bad question buth really i cant find it:
Where can i find the script of my game?

i want to set this one in it , for allie

;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=audiobank\guns\reload.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
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 23rd Dec 2007 13:52
1)Open Notepad,

2)Copy and Paste the script in,

3)Save it as an all files, and add .fpi on the end of it's name,

4)(remember to save it into your scriptbank,)

5)Open FPSC,

6)Right click on a character entity, and set it's main script to this by clicking on the dotted button and finding the script,

A small video for steps 1-3 is enclosed in the download, recommend you set it to full-screen.

Attachments

Login to view attachments
mgarand
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: The Netherlands
Posted: 23rd Dec 2007 17:15
thank u!
Drapes#10
17
Years of Service
User Offline
Joined: 1st Jan 2007
Location: Sireus 10 Game Studios
Posted: 24th Dec 2007 21:47
nice grammer

different kinds of FPS
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 28th Dec 2007 16:08
Quote: "nice grammer"


A gift of we British,lol.

Login to post a reply

Server time is: 2024-11-24 01:47:23
Your offset time is: 2024-11-24 01:47:23