I want to do a first person game with Triple jumping. Is it possible in Dim3? Here's how I want it to go: When the main character is in the middle of a jump, he should be be able to jump again, with the camera turning downward as the the player rises. When the camera stops turning, the player should be able to jump yet again, but this time, the camera should face the same way with the jump being the same height. When he lands, he should not get hurt, no matter what height he falls from, and the camera should turn itself back to it's original position.
Okay, for no damage: Just turn off height damage.
For the jumping, your probably going to want to use a projectile or something to shove the player up (using projectile push).
Do you understand basic scripting?
There's a quick trick you can do:
(in the player script)
Code:
map.object.shoveDirect(obj.setting.id,0,0,-25);
This is a API that allows you to "shove" an objects in a certain direction. When in the player script (and the obj is passed into a function), obj.setting.id is the ID of the player object, so you can use the map object to shove it.
[>] Brian
ggadwa Wrote:There's a quick trick you can do:
(in the player script)
Code:
map.object.shoveDirect(obj.setting.id,0,0,-25);
This is a API that allows you to "shove" an objects in a certain direction. When in the player script (and the obj is passed into a function), obj.setting.id is the ID of the player object, so you can use the map object to shove it.
[>] Brian
Muchos gracias for your help, guys. If you're wondering why I was talking like that, I'm learning to speak spanish!

robbitmondood Wrote:ggadwa Wrote:There's a quick trick you can do:
(in the player script)
Code:
map.object.shoveDirect(obj.setting.id,0,0,-25);
This is a API that allows you to "shove" an objects in a certain direction. When in the player script (and the obj is passed into a function), obj.setting.id is the ID of the player object, so you can use the map object to shove it.
[>] Brian
Muchos gracias for your help, guys. If you're wondering why I was talking like that, I'm learning to speak spanish!
Oh, yes, and just so you get an idea of what I
want...
ccccc Wrote:Okay, for no damage: Just turn off height damage.
For the jumping, your probably going to want to use a projectile or something to shove the player up (using projectile push).
Do you understand basic scripting?
Just one question: How, exactly, do you turn off height damage?
It should be in the player script.
data/scripts/objects/player
I'll dig it up.
Edit: Got it.
Code:
obj.health.fallDamageMinimumHeight=10000;
obj.health.fallDamageFactor=0.01;
Just set the minimum really high. (Like 400000 or something)
Edit: Thats right, Brian, why didn't I see that?

Changing:
... to 0 will also do it (this is how much damage you take per unit of fall. So, at zero, there will be no damage.)
[>] Brian
Or just delete the whole line. lol, if you don't want height damage, why put a line for it?
ccccc Wrote:Or just delete the whole line. lol, if you don't want height damage, why put a line for it?
That's OK, I just figured out how to remove height damage.