Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → AI Opening Doors
AI Opening Doors
2002-01-11, 7:38 AM #1
I am using a "damaged" message attached to a surface to make a pedestrian (non-enemy) walk to frame 1. Simple enough. But he has to get through three doors that are closed to get there. What's the most efficient way of doing this, other than just having all the doors open as soon as the message is sent?

Thanks.

------------------
Dead Reckoning and Dead Reckoning 2
Dead Reckoning
2002-01-11, 10:42 AM #2
For AI to open a door, you have to add that 'instinct' to it's AI file. Its easy, because that instinct has no args. Just crack your ped's AI open in notepad, and add the 'Opendoors' instinct.

 

Bingo, problem solved.


------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2002-01-12, 7:30 AM #3
Thanks!

------------------
Dead Reckoning and Dead Reckoning 2
Dead Reckoning
2002-01-12, 9:10 AM #4
He still isn't opening the doors....

Quote:
<font face="Verdana, Arial" size="2">

# Jedi Knight AI File
#
# IMPTECH.AI
#
# Based on pednarsh.ai
#
# [Christian J. Garris]
#
# Created for Dead Reckoning 3
#
# http://www.geocities.com/Quilty00/
#
# 1/12/2002
#
# Not Supported by LucasArts Entertainment Co.

alignment=-1.0, rank=0.5, fov=100, maxstep=0.1, sightdist=7.0, heardist=1.5

#instinct args
############################

SenseDanger 100.0, 0.0
Flee 10.0, 10000.0, 10.0
OpenDoors

</font>


The doors are handled by the standard 00_door.cog.

If the player opens the door for him, he walks through and continues on to frame 1.


------------------
Dead Reckoning and Dead Reckoning 2

[This message has been edited by Quilty (edited January 12, 2002).]
Dead Reckoning
2002-01-12, 12:30 PM #5
Another option is to modify the door cog to allow the 'touched' message to activate the door. Just add the message above the 'activated' message. You will also need to change the mask for the door 'thing', to allow your actor to touch it.

Code:
symbols
thing	door	mask=0x404


Code:
touched:
activated:


Raynar


------------------
... the Jedi I admire the most, met up with Darth Maul, now he's toast ...
Rbots - a project to develop a working Bot for Jedi Knight... download the latest development version here
Pagewizard_YKS: "making your own lightsaber doesn't make you a nerd... "
Raynar - the man with a 10.75" ePenis

↑ Up to the top!