Q:How do I get the turret to look at the camera, ive tried using player entity and creating an object that stays on the camera position but I cant get the turret(gunsentry) to look at the player even if the wrong side of the gun is pointing toward me.
[Mini Question] Q: How would I make it so that the video on an image plane is viewable from an infinite distance instead of fading away?
Any [Code Snippets] Responses on this will be immensly helpful. Yes I have searched forums for this I could not fin anything. Thank you in advance to all the people who reply to this post.
[update] okay so i stopped trying to do what ive stated instead i am trying to simply make the ai get started by looking around.
here is my code. "probably screwed up in more ways than one.
(AI entity still does nothing)
`Sentry Test
autocam off
hide mouse
sync rate 60
`ai
ai start
`physics
`phy start
`load level
load object "Build_Level.dbo",1
scale object 1,50,50,50
position object 1,0,-100,0
`phy make rigid body static mesh 1
`load models
load object "models\OB_Computer_moniter.x",3
scale object 3,1700,1700,1700
position object 3,300,5,-330
`image plain
make object plain 5,40,32
position object 5,300,6,-304
`load animation "mtt_sniper.wmv",1
`load image "Texture_256.jpg",1
`texture object 5,1
`play animation to image 1,1,0,0,256,256
`player
`ai add player 1
`ai set player position camera position x(),camera position z()
`load sentry
load object "enemy\sentry.x",2
scale object 2,7000,7000,7000
position object 2,140,100,-100
ai add enemy 1,2
do
AI Entity Look Around 1,180, 180
`camera
control camera using arrowkeys 0,3,2
loop
ai update
sync