generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Is Ray-casting The Only Way To Script A Gun?

Previous Thread :: Next Thread 
bossofthesea123 is not online. bossofthesea123
Joined: 20 Sep 2013
Total Posts: 38
16 Apr 2016 01:22 AM
The wiki seems to only associate ray-casting with laser, but I'm assuming that has to do with Roblox avoiding the whole bullets and violence thing. I haven't began reading through it yet, but I'm going to start tomorrow, just want to know if I'll be wasting my time.
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
16 Apr 2016 02:12 AM
Raycasting is not meant purely for guns, it just casts a ray from some point off into some direction and using FindPartOnRay you can see if the ray intersected with any BasePart.

You could just use projectiles and the Touched event for bullets though
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
16 Apr 2016 02:25 AM
"You could just use projectiles and the Touched event for bullets though"

(which is the worst thing ever)
Report Abuse
Thy_Yuno is not online. Thy_Yuno
Joined: 15 Jul 2014
Total Posts: 239
16 Apr 2016 02:39 AM
I use body velocity to shoot bullets
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
16 Apr 2016 03:04 AM
Good lord. Guns in 09' used to do the body velocity and touched thing. Don't, pretty much. If you have a high velocity bullet, you'll need a custom touch function. Just make it with recast. Even paintball guns with dip are just made with a good raycast.
Report Abuse
amgcag is not online. amgcag
Joined: 09 May 2013
Total Posts: 1331
16 Apr 2016 03:04 AM
No, they can use bullets (parts) that fling at people.

Pie is not a food, it's a milkshake.
Report Abuse
FrankieTheDino is online. FrankieTheDino
Joined: 27 Jul 2008
Total Posts: 603
16 Apr 2016 03:08 AM
You can always use ray-casting to create a path to guide your bullets?

Ray casting is just a calculation... There is a lot of things u can do with it.


Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
16 Apr 2016 05:57 AM
Phantom forces, Impulse, Kinetic Code, and even off site games like CoD use raycasting
Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
16 Apr 2016 06:01 AM
@wolf could you help me get to grips with how they use bullets and ray-casting togeather effectivelly?



#Strikin'
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
16 Apr 2016 06:07 AM
They use Guis to replace their bullets, using this: http://wiki.roblox.com/index.php?title=API:Class/Camera/WorldToScreenPoint
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image