Data Realms Fan Forums
http://45.55.195.193/

Making a grapling gun. need help
http://45.55.195.193/viewtopic.php?f=73&t=15366
Page 1 of 1

Author:  lafe [ Sun Jun 14, 2009 2:45 pm ]
Post subject:  Making a grapling gun. need help

Anyways, im making a grappling gun. the way i want it to work is:
step 1: the gun fires an mosr
step 2: the mosr sets the closest unit (firer) as the actor
step 3: the mosr keeps flying forwards untell it hits a wall
step 4: it pins itself when it hits the wall
step 5: recoreds the current distance between the actor and itself
step 6: keeps that distance steady untell you stop fireing (ie, keeping you in a circle around you)
step 7: realse the fire key and you fall.

i know some basic lua:
ie, i know how to set variables, but how do you add forces and check for collisions? thats what i need too know. any help would be much apruciated.

Author:  mail2345 [ Sun Jun 14, 2009 6:35 pm ]
Post subject:  Re: Making a grapling gun. need help

This will help with step 4:
http://datarealms.com/wiki/index.php/Lu ... trengthRay

Darlos's climbing code has a good example, and so does lua tech's gravity hook.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/