AI question

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
digitac
Sergeant
Posts: 58
Joined: Mon Jul 28, 2003 3:30 pm

AI question

Post by digitac »

How can i spawn an AI that "Can"die
Also i want to add the allied or axis avatar on his head
this is my current code

Code: Select all

allied_guard:

local.allied_guard1 = spawn models/player/allied_airborne.tik "testanim" "idle" "targetname" "allied_guard1" "origin" "( -140 5664 -177 )" "angle" "-60" "health" "100"
$allied_guard1 solid
local.allied_guard2 = spawn models/player/allied_airborne.tik "testanim" "idle" "targetname" "allied_guard2" "origin" "( -180 5629 -177 )" "angle" "-60" "health" "100"
$allied_guard2 solid

local.allied_hud_1 = spawn textures/hud/allies "origin" "( -140 5664 87 )"

end
thanks in advance

DigitaC
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

For a head icon you will need to custom .tik like the one in JV's bots or a custom ai with the head icon written into the tik . Either way it will be client side unless you use the bot head icon and the client who joins your server has the JVbots pak . I used head icons in my map The rescue for the prisoners you had to rescue . You can download the map and have a look at how it was done by looking at the tik's for the custom ai's .

http://members.shaw.ca/bdbodger/The_rescue.pk3

Image
digitac
Sergeant
Posts: 58
Joined: Mon Jul 28, 2003 3:30 pm

Post by digitac »

Thank yo but it didn't help me much

I want to add a ai scripted, he only needs to be idle

i am making a liberation mod
Post Reply