No enemy, no guns!

Post your scripting questions / solutions here

Moderator: Moderators

Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Nevermind jv...


Btw, when they go into attack mode...what's happen? I mean, which script takes care of them?
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

anim/attack.scr mostly.
Image
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Thanks jv! I was digging up in the models/animation folder and forgot about the anim folder :oops: !

Very interesting script, btw :shock: !

Ideas are coming up... :idea: !
Image
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

One very last question: If I tell the bot to go sleep and, I suddenly appear, he starts shooting at me and moving. After I died, he goes back to sleep in the air, wherever he is!

question is: How to "interrupt" this, or tell him to skip this thread?
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

What do you mean by telling a bot to go sleep :? ?
Image
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Like:
self walkto $point1
self waittill movedone
self anim sleep_lowerbunk
wait 30 // NAP TIME - I APPEAR HERE
self anim jumpup_lowerbunk
self waittill animdone
Of course the sleep.tik is $included
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Ah... just set his .enableEnemy variable to 0 :)
Image
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

This will make him not shoot at me, while he's sleeping?
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Definately 8-)
Image
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

So, while he's sleeping he will not shoot at me?

Hmm..suppose I want him to "wake up" if I got closer but, after the battle, he goes to..anywhere, any thread any line...I just don't want him to go back to sleep in the middle of the the city ( when he's shooting he moves..)

Sounds that I need to modify the attack.scr :shock:

What do you think?
Image
Post Reply