Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Tank Turret

Author
Message
Dark Dragon DX
17
Years of Service
User Offline
Joined: 31st Jul 2007
Location: United States
Posted: 31st Jul 2007 13:46
Iam new at Dark Basic and I can't seem to figure out how to have some kind of AI for the tank H-Tank 2.x (came with Dark Basic).
I don't need it to move I just need its turret to aim at the player and shoot at the player.
Along with a soldier that the camera follows which is H-USA.x.
I have a function camera that moves.

<I>Dark Dragon DX<I>
Dark Dragon DX
17
Years of Service
User Offline
Joined: 31st Jul 2007
Location: United States
Posted: 31st Jul 2007 14:59
Forget about the camera function, I got a tank that the camera follows.
But I can't really get the camera to fix..

<I>Dark Dragon DX<I>

Attachments

Login to view attachments
Dark Dragon DX
17
Years of Service
User Offline
Joined: 31st Jul 2007
Location: United States
Posted: 31st Jul 2007 15:03
I know the camera position depends on
cx#=newvalue(x#, wrapvalue(a#+180),300)
cz#=newvalue(z#, wrapvalue(a#+180),300)
position camera cx#,cy#,cz#

Sorry about the seperate posts :\

<I>Dark Dragon DX<I>
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 31st Jul 2007 16:49
If you make the turret a separate object you can simply use POINT OBJECT n,x,y,z I don't know if you can do POINT LIMB but you could give it a try.

I am King of the noobs!
Dark Dragon DX
17
Years of Service
User Offline
Joined: 31st Jul 2007
Location: United States
Posted: 31st Jul 2007 18:05
To position the camera on the tank?

<I>Dark Dragon DX<I>
Dark Dragon DX
17
Years of Service
User Offline
Joined: 31st Jul 2007
Location: United States
Posted: 31st Jul 2007 18:15
Ah, this is what I got to use
if dist#<1500.0
point object 29,something,something,somethingendif

<I>Dark Dragon DX<I>
Dark Dragon DX
17
Years of Service
User Offline
Joined: 31st Jul 2007
Location: United States
Posted: 31st Jul 2007 23:46
Here is a small snippet of what I have so far..
You may press Space for an audio sound but there is no bullet and the audio won't repeat when you press space again.

<I>Dark Dragon DX<I>

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-26 06:39:12
Your offset time is: 2024-11-26 06:39:12