Page 1 of 1

A running AI

Posted: Fri Jan 23, 2004 6:12 am
by digitac
How come my AI will not run when i say so
start:
self immune bash
self immune bullet
self immune fast_bullet
self immune grenade
thread stuck
wait 4
self say dfr_M1L1_101j
wait 11
// self remove
wait 2
$soldier1 lookat $soldier2
$soldier2 lookat $soldier1
$soldier1 say dfr_M3L3_310jnew
wait 3
$soldier2 say dfr_sighted_01h_187
wait 0.8
$soldier2 say dfr_sighted_01h_185
wait 3
$soldier1 say AMdfr_r_17z
$soldier1 runto $captain
end

*edit:

Ok i think i found something but when i try to do this my mohaa crashes while loading the map

spawn a pathnode

if i am nog mistaking i do it like this

Code: Select all

	local.path1 = spawn info_pathnode
	local.path1.origin = ( -800 5500 -80 )
	local.path1.targetname = path1
am i missing something ?

thnx for helping me out

Info : i am currenly scripting for 20 hours non stop ( only for diner and toilet :) )

Posted: Fri Jan 23, 2004 7:23 am
by jv_map
You can't spawn pathnodes, they need to be in the map as you compile.

Posted: Fri Jan 23, 2004 7:26 am
by digitac
How can i make the ai walk to an location then ?

and don't tell me it isn't possible

everything is possible in the world :)

Posted: Mon Jan 26, 2004 1:07 am
by nuggets
if it's for a stock map you can't get him to walk along a new route as pathnodes can't be spawned, otherwise if you have the .map file just add them in and name them as normal

if there are no pathnodes in the map the entity can't find it's starting position and therefore can't determine it's length to walk

if there are some in the map, are you sure there's a $captain??

Posted: Mon Jan 26, 2004 1:23 am
by digitac
nuggets wrote:if it's for a stock map you can't get him to walk along a new route as pathnodes can't be spawned, otherwise if you have the .map file just add them in and name them as normal

if there are no pathnodes in the map the entity can't find it's starting position and therefore can't determine it's length to walk

if there are some in the map, are you sure there's a $captain??

The $captain is an other AI i called like this

But if it's not possible, to bad for me then :S