View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:51 pm



Reply to topic  [ 5 posts ] 
 Simulating sharp-aim 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Simulating sharp-aim
Well, in my gunship project, I made a gatling gun which is an attachable on an ACRocket. Everything works fine except for the fact that I can't make it sharp-aim.

How can I move the camera like if I was sharp-aiming with this?


Mon Nov 21, 2011 4:01 am
Profile
DRL Developer
DRL Developer

Joined: Tue Aug 11, 2009 5:09 am
Posts: 395
Reply with quote
Post Re: Simulating sharp-aim
You can set the Actor's ViewPoint to get a SharpAim effect.
Code:
self.ViewPoint = self.Pos + Vector(100,0):RadRotate(AimAngle)


Mon Nov 21, 2011 4:01 pm
Profile
User avatar

Joined: Mon Nov 14, 2011 8:58 pm
Posts: 92
Reply with quote
Post Re: Simulating sharp-aim
Abdul Alhazred wrote:
You can set the Actor's ViewPoint to get a SharpAim effect.
Code:
self.ViewPoint = self.Pos + Vector(100,0):RadRotate(AimAngle)

would this create the accuracy effect of a sharpaim though?


Mon Nov 21, 2011 4:45 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Simulating sharp-aim
Nah it'd only move the camera. To make the aim more accurate you'd have to adjust the spread of the emitter.


Mon Nov 21, 2011 5:47 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Simulating sharp-aim
So it was easy.


Thanks for the help!


Mon Nov 21, 2011 7:45 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.136s | 15 Queries | GZIP : Off ]