PDA

View Full Version : How would i make an enemy attack a structure?



Rogue15
01-09-2001, 02:25 PM
Is there a cog to use for doing that? I'm planning on having the enemy attack a shield generator...

Quilty
01-09-2001, 03:51 PM
You can do it in a scripted way such as having the character appear to attack the structure by playing a key when the player crosses an adjoin, enters a sector, etc. If the structure (or part of it) were a 3do, you could then after a specified time have the 3do replaced by a different "damaged" 3do.

Of course, if you want the character to really attack it, you'll have to monkey with the AI, which could be a considerable task. I've never seen it done.

------------------
"Dead Reckoning and now Dead Reckoning 2" (http://www.geocities.com/quilty00)

GuNbOy
01-09-2001, 08:15 PM
AISetFireTarget(Enemy, victim);
that will make your enemy fire at "victim"
i assume untill it is destroyed...not sure though, if not you would want to put it in a pulse or somthing

Rogue15
01-10-2001, 01:32 PM
is this a cog that i just add? Seems easy enough.

Rogue15
01-11-2001, 10:26 AM
i'm confused, is aisetfiretarget a cog or a .ai or something i need to modify in the .ai?

Aglar
01-11-2001, 10:29 AM
http://forums.massassi.net/html/rolleyes.gif
AISetFireTarget(Enemy, victim);
is a cog verb, something that you put in a cog..


------------------
Together we stand.
Divided we fall.

Rogue15
01-11-2001, 02:00 PM
would i be able to put this into the aiframepatrol cog then? which cog would i put this under?

Fernando_the_Hunn
01-13-2001, 04:38 PM
make your own. like so:


symbols
thing enemy
thing target
message startup
end
code
startup:
AISetFireTarget( enemy, victim );
return;
end


replace startup in both cases with the message of your choice. I think the syntax is correct, but I havent cogged in a while so it might need some adjustments... http://forums.massassi.net/html/frown.gif

------------------
cogs dont kill people. people kill people...

mailto:no_oneatall@hotmail.comno_oneatall@hotmail. com</A>
ICQ 81116825
===========================================
Evil Cog master of the Western TC!

Stormie
01-14-2001, 02:43 AM
If its for jk theres a cog that makes an enemy attack a pedestrain....so when u fill in the thing numbers put the thing number for the structure where u would normally put the pedestrains in!


------------------
Stormie

Rogue15
01-16-2001, 03:04 PM
i gotta try that. I figured out how to make the enemy friendly, kindof, it doesn't actually 'die' though. see the main editing forum to see if you can help me there.

Xizor42
01-17-2001, 07:59 AM
just use 00_aiturncoat.cog. It's a mots cog, but im sure there's an equivilant for jk.

------------------
"The Answer to everything...Life, the Universe, and Everything, is...42!"
--Deep Thought
Hitchhiker's Guide to the Galaxy

Rogue15
01-17-2001, 12:44 PM
this level's for mots.