Please, are there any scripts to hurt, when fall from any height??Or can be it somehow done by using only logic bricks???
THANKS TO ALL;)
hey. i have wrote this script and here it is
cont = GameLogic.getCurrentController()
own = cont.getOwner()
obj_list = GameLogic.getCurrentScene().objects
player = obj_list[“OBDefault”]
health = player[“Health”]
speed = own.getLinearVelocity()[2]
if speed <= -8.5:
player[“Health”] = health + speed*7.6
The player is the object “Default”. It’s mass is 80. And have the integer property health.
Of course you can change it to your objects name.
To the player object just add the ray sensor with activate true level triggering, range = 2.5 but it is based on your player scale, and -Z axis. And connect it to the FallDamage script.
I hope you understand if not i can send a blend…
Thank so much, but i am not so good in scripting:confused:, so .blend file is welcome:yes:
PS:Ty si z Česka?
píšu že sem z česka tak sem ne?
Jaj,:o, diki za blend
inac ta tvoja gamesa vyzera perfektne, to teda čumím:eek:
Trosku mi to pripomína blend týchto dvoch hier:spyro:the dragon a half-life(Xen mapy)
vpoho nejni zac jinak původní inspirace je z avatara a gameplay bude neco jako serie penumbra… a esi se mi povede udelat naka jednoducha AI tak se mate na co tesit… jinak dalsi projekt bude asi Ad Definitum Game Engine 2.0 a mozna ho uvolnim jako open source. na cem pracujes ty?
http://blenderartists.org/forum/showthread.php?t=186670&highlight=fps+horror+game
bude to nieco ako STALKER,akurat ze toto je len zastaralejsia verzia-tato praca je momentalne pauznutá.
Robím na takej zombie massakrovskej - tá je tiež pauznutá:D(ano asi som sialenec)
Mám teraz rozrobenú takú scénu (art, nie hru, taký kostol http://blenderartists.org/forum/showthread.php?t=194823)
hej. to vypadá hodně dobře… držim palce abys to všechno dokončil
Moderating:
Please, post in English, or send private messages.
Monster:sorry
chaeMIL, thanks, do you have facebook account?