Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Attach health pickup to AI??? #202442
04/14/08 23:00
04/14/08 23:00
Joined: Feb 2008
Posts: 22
J
jsaechao Offline OP
Newbie
jsaechao  Offline OP
Newbie
J

Joined: Feb 2008
Posts: 22
I am using the game templates scripts from 3dgs A6 and I want to know if there is a way to attach an object such as health or ammo on to an AI. I want the AI to drop a health pickup after the AI is killed or the death animation.

Re: Attach health pickup to AI??? [Re: jsaechao] #202588
04/15/08 21:21
04/15/08 21:21
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
it is not possible in A6, i always wanted to do that as well. there was an old code that was in the Aum for a5, and you could add it to one of the old AI script, but i could never get it to work for A6. look in the Aum's maybe you can fix it for A6, good luck.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: Attach health pickup to AI??? [Re: Blink] #215062
07/09/08 02:28
07/09/08 02:28
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline
Senior Member
xbox  Offline
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Hey, i use A6 and i was wondering the same thing. But the only difference is, I found out how to do it. All i had to do (took me about 20 minutes to find it) was go into the War.wdl file and find the State_die() (i believe it is) and in it you have to look for a line that basically plays the Death animation. It took me a while to find this because it was worded akwardly. Any way, right before the death animation is played, i put this code:
Code:
 ent_create (health_pack, vector(my.x,my.y,my.z), medipac); 

This snippet of code creates the health pack right as the player is dying. The only problem i have with this code, is the health pack floats in mid air. I have absolutely no experience with the physics engine so i don't know how to make it fall properly.

Re: Attach health pickup to AI??? [Re: xbox] #221759
08/16/08 04:37
08/16/08 04:37
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
how did you implement this?


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: Attach health pickup to AI??? [Re: Blink] #236841
11/16/08 20:25
11/16/08 20:25
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline
Senior Member
xbox  Offline
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
What do you mean?

Re: Attach health pickup to AI??? [Re: xbox] #236848
11/16/08 20:59
11/16/08 20:59
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
ent_create (health_pack, vector(my.x,my.y,my.z), medipac);

this creates healthpack at x,y,z coords of the enemy.

you can use a c_trace to trace ground and then you can creat on the ground.


3333333333

Moderated by  HeelX, rvL_eXile 

Gamestudio download | 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