0 registered members (),
984
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Need help with my first AI
[Re: Abarudra]
#417226
02/10/13 13:23
02/10/13 13:23
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
You can find a very simple AI example I've made long time ago, on my website here: Zombie [LITE-C] I guess you'll be able to learn some stuff from it, as it's very basic.
|
|
|
Re: Need help with my first AI
[Re: The_KING]
#417293
02/11/13 12:10
02/11/13 12:10
|
Joined: Jan 2013
Posts: 106 Only in your imagination!
The_KING
OP
Member
|
OP
Member
Joined: Jan 2013
Posts: 106
Only in your imagination!
|
I am sorry if I was annoying you by my very simple questions ,3run but I am a very beginner ,so I couldn't understand most of your Lite-C AI zombie example (I liked it very much, but there are some things that I couldn't understand even after reading about them in the manual)
Now, I only need a Lite-C script for "shooting" the enemy (how to make its health decrease only when the cursor is over it,..etc.)
Thank you guys for helping
Last edited by The_KING; 02/11/13 12:11.
|
|
|
Re: Need help with my first AI
[Re: The_KING]
#417307
02/11/13 14:05
02/11/13 14:05
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
When the player entity becomes at a certain distance from the enemy entity, the enemy moves towards the player entity and faces him playing a certain animation scene, then when he becomes so close, a punching animation scene is played
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=414603#Post414603Seen this one ? AI does exactly that what ure asking for. Edit: Except of punching, but would be easy to implement.
Last edited by rayp; 02/11/13 15:12.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: Need help with my first AI
[Re: The_KING]
#417634
02/14/13 20:09
02/14/13 20:09
|
Joined: Jan 2013
Posts: 106 Only in your imagination!
The_KING
OP
Member
|
OP
Member
Joined: Jan 2013
Posts: 106
Only in your imagination!
|
Here is my piece of code + a simple game resources used by it (I used some models from 3D Game Studio templates (one of them, the alien model, for it, I removed the weapon). Also, I used a level template from lite-C workshops "lite-c samples" file) Note: after downloading, open the script file named "har" not "tr" Download link: http://www.filehosting.org/file/details/420168/For_help.rar Thank you very much for helping
Last edited by The_KING; 02/14/13 20:57.
|
|
|
|