Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Enemy Script & door script #211785
06/18/08 13:30
06/18/08 13:30
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Hey, I was wonerdering if any one would be so kind as to make me an enemy Script that makes the enemys shoot directly at me, and when i shoot at them, the hide behind a near object and every 5 seconds or so they pop up to take another shot. I also can not have them run away at all, (the template scripts come no where near what i want). I can script myself but i can only do panels and such. I haven't been able to do much animation scripts.

Also, I need a simple script that allows the player to shoot a door with a certain gun and the door goes flying back a suitable distance.

Re: Enemy Script & door script [Re: xbox] #212486
06/22/08 15:52
06/22/08 15:52
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
anyone ???

Re: Enemy Script & door script [Re: xbox] #212498
06/22/08 16:23
06/22/08 16:23
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline
Serious User
Blade280891  Offline
Serious User

Joined: Jan 2008
Posts: 1,580
Writing AI is not a simple task, i don't think anyone will do it for free.


My Avatar Randomness V2

"Someone get me to the doctor, and someone call the nurse
And someone buy me roses, and someone burned the church"
Re: Enemy Script & door script [Re: Blade280891] #212544
06/22/08 22:42
06/22/08 22:42
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Yeh no-one will write a custom script like this because AI is probably the hardest type of code to write, IMO.

For the door thing, if you want it realistic then i suggest you make it a physics entity and combine some c_trace code for the gun with a force code to make the door fall-over/push back when shot.

Re: Enemy Script & door script [Re: DJBMASTER] #212548
06/22/08 23:22
06/22/08 23:22
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Then does anyone have something better than the templates lying around that they wouldn't mind giving to me for free?

Re: Enemy Script & door script [Re: DJBMASTER] #212549
06/22/08 23:30
06/22/08 23:30
Joined: May 2006
Posts: 90
England
TigerTao Offline
Junior Member
TigerTao  Offline
Junior Member

Joined: May 2006
Posts: 90
England
AUM magazines 55-57 would be a great start for you as it deals with an enemy shooting at you and you shooting at them.

As for hiding I wont write a script as it is pretty hard to do this right. Though I can suggest reading up on path nodes, events and c_scan. These elements are what your enemy needs to find specific hidey bits like crates and to then find the nearest one.

Re: Enemy Script & door script [Re: TigerTao] #213079
06/25/08 18:32
06/25/08 18:32
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
okay, i have used the AUM's and as i came to finishing the AI tutorials, i ran into a slight problem. When i run the code, i get an error saying that "c_scan" is not a valid parameter. It not even in my help file. I need this so the enemy won't be able to tell i am behind him. HELP

Re: Enemy Script & door script [Re: xbox] #213114
06/25/08 22:36
06/25/08 22:36
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Now i have another problem, the the enemy with the yellow blocks works but i want to use my gun to shoot the enemy. I don't want to use a bullet at all, i just want to use the DAMAGE_IMPACT option for the gun. The problem is, the enemy won't die unless it is hit by an entity with the skill30 set to one. It would work fine if i wanted to stab the enemy but i want to shoot with invisible bullets.


Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1