View unanswered posts | View active topics It is currently Mon May 13, 2024 3:26 pm



Reply to topic  [ 6 posts ] 
 Jetpack to Jump? 
Author Message

Joined: Tue Dec 04, 2012 1:31 am
Posts: 45
Reply with quote
Post Jetpack to Jump?
Hello, I'm attempting to make an actor with a jetpack that is possible to shoot off, and have explode. The problem I face as of yet is that my actor, when the jetpack is removed, is completely unable to even simply jump, and as such can't really get around any more. I was wondering if it would be possible to have a "jump" (jetpack) replace the normal one when the normal one is destroyed.


Tue Mar 12, 2013 2:00 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post Re: Jetpack to Jump?
YOu'd have to do some sort of magic involving Lua to get them to jump after that sort of ordeal.


Tue Mar 12, 2013 4:28 am
Profile

Joined: Tue Dec 04, 2012 1:31 am
Posts: 45
Reply with quote
Post Re: Jetpack to Jump?
That shouldn't be so hard, I just need to attach a script to the jetpack to find and then set the sharpness of the Actor wearing it, 1 sharpness for jetpack attached, 2 for not attached, and then attach a script to the actor to switch between the two... I just can't figure out specifics. Is it even possible to set jetpacks with Lua?


Thu Mar 14, 2013 4:14 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post Re: Jetpack to Jump?
Have a script on the actor that checks the actor's attached parts. If the jetpack is not found, make the actor do a jump via velocity change in the script whenever the jump key is pressed.


Thu Mar 14, 2013 5:18 am
Profile

Joined: Tue Dec 04, 2012 1:31 am
Posts: 45
Reply with quote
Post Re: Jetpack to Jump?
That would work, and on a completely unrelated note, is it also possible to check for the sharpness of an object, say the head, of an actor?


Fri Mar 22, 2013 7:02 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post Re: Jetpack to Jump?
Yes, it is. Just have the pointer to the actor and then the Sharpness variable.

thisIsAHead.Sharpness


Sun Mar 24, 2013 1:45 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 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.036s | 15 Queries | GZIP : Off ]