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
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 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
Help or a tut? #219324
08/02/08 01:03
08/02/08 01:03
Joined: Aug 2008
Posts: 218
U.S.
GamerX Offline OP
Member
GamerX  Offline OP
Member

Joined: Aug 2008
Posts: 218
U.S.
Ok so i have a couple questions all i the same field basically,

One: How do you create bullets for a gun like i know you make

them then you can ent_create them but how do you make it so

that they will always end up coming out of the gun?

Two: How do i make it so that when the bullet hits the

target, the target dies or an effect triggers? I saw in the

manual it mentioned c_trace and something about triggers and

some shoot thing but it didn't specify it just mentioned

them, i have used c_move before but only with GLIDE like it

teaches in the tutorial for c-lite.

So i was wondering if any1 can help me or point me to a

tutorial that will help? Thanks!

Re: Help or a tut? [Re: GamerX] #220084
08/06/08 00:39
08/06/08 00:39
Joined: Jul 2007
Posts: 48
M
MattyTheG Offline
Newbie
MattyTheG  Offline
Newbie
M

Joined: Jul 2007
Posts: 48
I'm rather new to 3d Gamestudio too so I might not be much help. My advice will mostly come in the form of suggestions, not exact code because, well simply I don't know the exact codes.

For the bullet to launch out of the gun you need to make a pointer for the gun, preferably name it gun. Then when you use ent_create place the bullet at something like, x = gun.x + 30; y = gun.y + 10;. You will have to use MED to find out how many units away the bullet should be placed at. I think you can also create a vertex where you want the bullet to spawn on the gun, then using ent_create set the creation point to that vertex somehow.

For the bullet hitting the target part, I imagine you would have to use some type of event_collision function, as well as variables such as health -= 5; or something like that so that on collision the bullet does 5 damage.

Sorry I can't help you so much with the code, but I hope the ideas provided will be beneficial.

Re: Help or a tut? [Re: MattyTheG] #220124
08/06/08 01:23
08/06/08 01:23
Joined: Aug 2008
Posts: 218
U.S.
GamerX Offline OP
Member
GamerX  Offline OP
Member

Joined: Aug 2008
Posts: 218
U.S.
Alright well thanks, stinks there isn't many A7 tuts.


"You may never know what results come of your action, but if you do nothing there will be no result."
-Mahatma Gandhi

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