View unanswered posts | View active topics It is currently Fri Mar 29, 2024 1:13 pm



Reply to topic  [ 2 posts ] 
 Making a grapling gun. need help 
Author Message
User avatar

Joined: Sat Mar 28, 2009 2:33 pm
Posts: 718
Reply with quote
Post 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.


Sun Jun 14, 2009 2:45 pm
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post 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.


Sun Jun 14, 2009 6:35 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.076s | 15 Queries | GZIP : Off ]