|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Author |
Message |
woottipat
Joined: Fri Jun 12, 2009 10:19 am Posts: 42 Location: Bangkok, Thailand
|
Aim through walls
Is it possible to aim through walls using LUA ? cuz i'm making "Rail Driver" from RF:G
If it possible, can you tell me the code ?
TX
|
Sun Jun 27, 2010 1:44 pm |
|
|
robolee
Joined: Fri May 11, 2007 4:30 pm Posts: 1040 Location: England
|
Re: Aim through walls
I guess it's possible through Lua, but you can't actually make the normal aiming reticle go through walls and that will still affect the camera.
|
Sun Jun 27, 2010 2:32 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Aim through walls
I had an idea for a zoom extension before, it could apply to this. What I was thinking is that you could use Lua to detect if the target actor is zooming their gun. If they are, then switch their control to an actor that looks like the zooming dots, which will be re-positioned every frame X pixels in front of the target actor's gun. Any control on the "zooming dot" actor will translate to controls being sent to the target actor, making it seem like you are actually zooming. If the player stops pressing the zooming button, the script will be able to detect that and switch control back to the target actor.
|
Sun Jun 27, 2010 7:20 pm |
|
|
Nocifer
Joined: Tue Mar 16, 2010 7:38 pm Posts: 447 Location: The Ninth Circle
|
Re: Aim through walls
This has happened to me during normal play, no doubt as the result of some minor glitch. It's actually not that spectacular; you'd be surprised how much you'd begin to miss the reticule stopping when it hits something solid.
|
Mon Jun 28, 2010 12:31 am |
|
|
|
|
Page 1 of 1
|
[ 4 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
|
|