Blockland Forums > Modification Help
Changing Jet force, constant force on player, onDataBlockCreate? (and other Q's)
(1/4) > >>
ArmyUnit:
Hello everyone, I'm going to be creating several new playertypes, and I need to know how to do the things listed below before I can complete them:  (script-wise anyway :P)

1-  for several of my projects I need the player jets to give much more force then they currently do with the default playertypes. I'm hoping this isn't too hard to achieve, but I am no scripter, soo...

2- I'm going to be making a playertype with a jetpack. The jetpack needs to accelerate the player to a certain speed, hold at that speed for about 2 seconds, then completely shut off. (I was originally thinking of using the player jets for this, but I think an item image may work better) What I need help with is getting the item image to apply a constant force to the player (similar to the jets). If possible the movement of the player should be as smooth as possible (not jerky/laggy). Also, for another playertype I am working on, I will need to use this same system, but instead of causing the player to shoot up, it needs to force the player in the direction they are looking (why I can't us jets).
Any help with this would be very greatly appreciated, since I need this function the most.

3-  Is there a way to make a playertype datablock, say, play an animation, when a player's datablock is changed to it? (example: player clicks on evented brick that changes his datablock to a scorpion>scorpion plays sting animation)

4-  Is there a way to change values of a player datablock (movement speed, drag, mass, etc) by an item script?


As always, any help is greatly appreciated. <3
SpreadsPlague:
you cannot change jet force
ArmyUnit:

--- Quote from: SpreadsPlague on September 11, 2010, 11:26:53 AM ---you cannot change jet force

--- End quote ---

Yeah, I was suspecting that.. :/

Too bad there isn't any way to view the jet script. Then I could probably make my own version.
lordician:
I think i can fix some of those for you.

1. I thought it was possible, but is SpreadsPlague is right, i could find an other way around anyway.
2. Should the player hold the fire button/jet button? Or does it have to do it automatically? The best way is to let the player hold the key as it will be somewhat less jerkier.
3. Playertypenameher::OnNewDatablock(%this , %obj)
Then letting it perform an animation would be like:
%this.playThread(slotnumberhere, "animationname");
But i'll get ya the full script if you PM me with the information for what it is, how the namehere's should be filled and stuff like that.
4. Unless you change the playertype. Nope.

Why didn't you PM me right away? D:
I know i am a bit/quite inactive on the job lately, but hey, i could have answered some of those right away. :P
ArmyUnit:

--- Quote from: lordician on September 12, 2010, 04:44:33 AM ---I think i can fix some of those for you.

1. I thought it was possible, but is SpreadsPlague is right, i could find an other way around anyway. kk
2. Should the player hold the fire button/jet button? Or does it have to do it automatically? The best way is to let the player hold the key as it will be somewhat less jerkier. I will need both. They will both use the Jet Key
3. Playertypenameher::OnNewDatablock(%this , %obj)
Then letting it perform an animation would be like:
%this.playThread(slotnumberhere, "animationname");
But i'll get ya the full script if you PM me with the information for what it is, how the namehere's should be filled and stuff like that.  Awesome, thanks!
4. Unless you change the playertype. Nope. Are you completely sure? I think Nicro327 said he had gotten a script working that does this. He may have meant changing the datablock though, I need to ask him for more info. :/

Why didn't you PM me right away? D:
I know i am a bit/quite inactive on the job lately, but hey, i could have answered some of those right away. :P\
Originally I was going to PM you, but I ended up posting it here anyway :P

--- End quote ---

Replies in bold.
Navigation
Message Index
Next page

Go to full version