Delta Force Barracks Forums

How do I attatch AI to

Primalyukon - 11-18-2004 at 06:35 AM

I use A.Bullets Med and I cant get the AI to Attatch TO weapons (50 cals w/Bunkers
and 50's on Tripods)

Can some 1 help me please.....:cool:

My unqualified response

Taxi Jones - 11-19-2004 at 12:10 AM

I haven't tried the emplacements yet as I work mainly with Vehicles, but try and treat them the same, as an ssn 'target'.

Attach the AI to an SSN by goto waypoint 125-SSN of the emplacement.

Holler if it doesn't work and I'll break out the editor for some testing, sorry couldnt test in advance of reply.... been busy working on a memory leak on someone's server (looks like article EDITED, OOPS 884039 may apply, heads up for win2k servers currently getting "balky")

Attach AI to Weapon

Avernum - 11-19-2004 at 06:32 PM

(I USE NILE)
This works for JOMED, it's the same logic,
but If you don't figure out, edit the WAC file :)

I simply use an event like

if never() then
ssn2ssn(bad guy, weapon)
endif

I put the bad guy close to the weapon
and when the game starts, he goes to the weapon and use it.

to detach from a weapon use

if then
ssnrelease(bad guy)
endif



Hope it helps.





OK now

Primalyukon - 11-20-2004 at 01:39 AM

OK Now how do I get them to re attatch after they die If I have them respawning 1 or more times???:cool:

Avernum - 11-21-2004 at 12:04 AM

Quick & ugly method:

remove the "and never()" statement
and the event will execute forever, by doing this way you'll get the BG go to the weapon all the time. This method could lead to some problems.

The best method:

using variables, you can set an event
for the BG to go to the weapon if a var is 0 and then when is using it, put the var to 1, for example.

When the BG is dead put the var to 0
, etc...

Please test this, I can't actuallly do until tomorrow... :)

humanoid - 1-3-2005 at 02:24 AM

Quote:
Originally posted by Avernum
Quick & ugly method:

remove the "and never()" statement
and the event will execute forever, by doing this way you'll get the BG go to the weapon all the time. This method could lead to some problems.

The best method:

using variables, you can set an event
for the BG to go to the weapon if a var is 0 and then when is using it, put the var to 1, for example.

When the BG is dead put the var to 0
, etc...

Please test this, I can't actuallly do until tomorrow... :)



Can you add a statement like this?:

If the condtion hasn't happend or if the bad guys are dead the event will continue if you have the bad guys respawn and the waypoint looped.

example:
if never() or ssndead(1) then
SSN2SSN(1,3)
SSN2SSN(2,3)
SSNtoWP(3,1)

Curious as I Just started making maps with Nile.

Yes

Avernum - 1-4-2005 at 06:54 AM

yes you can.

you can make the bad guys to respawn, take a vehicle and go to a waypoint forever. I use this in my new map (in editing stage) THE WAAARGH :)