Author Topic: align turret to mouse  (Read 3125 times)

what if i want to make the angle less in-game? is it some part i can edit in the script that allows me to limit the angle?

what if i want to make the angle less in-game? is it some part i can edit in the script that allows me to limit the angle?
yes.
Code: [Select]
minLookAngle = -1.5708;
 maxLookAngle = 0.5;
that's from my hydra aa turret, which can only look 90 degrees up. mess around with those values.

yes.
Code: [Select]
minLookAngle = -1.5708;
 maxLookAngle = 0.5;
that's from my hydra aa turret, which can only look 90 degrees up. mess around with those values.
oh, i see. thank you so much

just tried it. it works flawlessly. you are a god among men
not just yet. the vertical maxlookangle doesn't really change anything. no matter what value i can see all the way up. and is there some sort of offset? when i shoot its not aligned to the mouse, but at least it moves up and down with the mouse at the same pace

and when i do from 90 to -90 it only uses up 20 frames and not 21. to make it 21, the last frame i made it go from down all the way up, like i see in every other look.dsq's
« Last Edit: January 11, 2014, 12:45:36 AM by Omicron Corp »

just tried it. it works flawlessly. you are a god among men
not just yet. the vertical maxlookangle doesn't really change anything. no matter what value i can see all the way up. and is there some sort of offset? when i shoot its not aligned to the mouse, but at least it moves up and down with the mouse at the same pace

and when i do from 90 to -90 it only uses up 20 frames and not 21. to make it 21, the last frame i made it go from down all the way up, like i see in every other look.dsq's
it should use frame 1 to 21
1-90
2-81
3-72
4-63
5-54
6-45
7-36
8-27
9-18
10-9
11-0
12- (-9)
13- (-18)
14- (-27)
15- (-36)
16- (-45)
17- (-54)
18- (-63)
19- (-72)
20- (-81)
21- (-90)


just tried it. same thing as last time except when it spawns, the barrel looks straight down at a -90 angle until i move it

you could do this with vce
onvariabletrue>player>spawnprojectile>wat

you could do this with vce
onvariabletrue>player>spawnprojectile>wat
setro sometimes i still wonder how you are able survive without a brain

setro sometimes i still wonder how you are able survive without a brain
Why are you being a jerk, I was helping you.
You don't need complex scripting to make a turret align itself to the mouse.
Projectiles shoot from players in the direction of the crosshair.

Why are you being a jerk, I was helping you.
You don't need complex scripting to make a turret align itself to the mouse.
Projectiles shoot from players in the direction of the crosshair.
oh my loving god

got it to line up with the mouse perfectly. but then again the problem with the -90 degree angle when spawned still persists. i can only fix that problem if i add another keyframe at the end which makes it go from -90 to 90, but when i do that the mouse gets disaligned

link to the .blend file - https://www.dropbox.com/s/4jypjj6koxngq6e/tankthingytestffffaaf.blend
« Last Edit: January 15, 2014, 07:53:14 PM by Omicron Corp »


can you just stop
you're so ungrateful
why should i be grateful to something that is completely stupid and irrelevant to my question? seriously did you like, not read the op at all

why should i be grateful to something that is completely stupid and irrelevant to my question? seriously did you like, not read the op at all
it doesn't matter, i tried to help and you dismissed me

it doesn't matter, i tried to help and you dismissed me
what if i trip, and instead of helping me get up you just pour a bucket over my head and just excuse yourself by saying "oh i just tried to help you!!!"
seriously you have no idea what you are talking about
i mean i wouldn't get mad if it was someone else but you have a history of acting know-it-all but just ending up knowing absolutely nothing
like what the forget does VCE eventing even have to do with .dsq animations and vehicles