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 / AI question...

Author
Message
Superdean
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location:
Posted: 14th Oct 2006 23:31
In my game I am stuck in a prison cell with guards walking back and forth outside the cell on a waypoint. However, the guards come chase me when they get outside the cell. I don't want that to happen. Is there a script in which they don't shoot at me when they are guarding the cell? Also, later in the level, you meet the same guards. At that point I want them to shoot at me. Is this possible? If so, how?

-www.theminimedia.com-
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 15th Oct 2006 06:06 Edited at: 15th Oct 2006 06:15
Yes, but it will require a unique script and a trigger zone!

Fist give the guards outside your cell the same name (Guard1, or something.)

Second give the guards the following code for their main script.


you'll have to copy and paste the code into notepad. call it what you want.

Thirdly place a trigger zone somewhere outside the cell.
Use "plrinzoneactivateifused.fpi" as the main script for this zone.
go into the entity property menu and type the name of the guards (Guard1) in the ifused box.

Test the game. the guards should follow the waypoints and look around until you enter the trigger zone and activate them. Once activated, they will begin the shooting script you assign them.

** If the guards are close to one another you'll have to alter their fire rate so that one is much higher than the other if you want them both to shoot at you. for example Guard1-a can have a fire rate of 25 and Guard1-b a fire rate of 75. Otherwise, one guard will not shoot until the first guard is dead. **

Nue B. or not Nue B. That is the question.
Superdean
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location:
Posted: 15th Oct 2006 16:32
thanks.

-www.theminimedia.com-

Login to post a reply

Server time is: 2024-11-23 01:32:18
Your offset time is: 2024-11-23 01:32:18