![]() |
Dead Players
When a player dies their body acts as a 'block'
Is there any way to disable a dead person from blocking? We use onwall / onwall2 to detect (custom movement) I know there is a way around this using 'noplayerkilling()' but there is no toggle to 'enableplayerkilling()' thanks |
Quote:
|
no because onwall and onwall2 returns true / false... lol
|
Quote:
|
Quote:
|
PHP Code:
|
Does that work @ Dusty?
Script help for 'isblocking': TServerNPC.isblocking - boolean TServerNPC.isblockingprojectiles - boolean |
Quote:
http://forums.graalonline.com/forums...postcount=1635 But it's clientside only, so you basically either have to loop through all the players clientside and change their blocking status, or use a function(like onPlayerChanges). However onPlayerChanges() is only called when the player's head changes, or they enter the screen buffer. I'm trying to get Stefan to add onPlayerTouchsPlayer(playerobj) so there's a more reliable way of updating a player's blocking status. |
Interesting, thanks.
I assume since it's boolean you can toggle |
It's documented in my version :) (start with -listscriptfuntions)
TServerPlayer.isblocking - makes the player blocking or non-blocking on the current client only There can also be other ways to handle this: - on server-side set the player classic health to zero while the player is dead (player.hp/hearts) - on client-side you can use TServerLevel.isnopkzone = true/false, you can set this before using onwall and unsetting afterwards |
Quote:
|
Quote:
|
Hmmm when I set the players HP to 0 it made them walk through, however on Era iOS it still showed the 'End' sign and it kinda crashed my client
|
Any ideas :(
|
Don't use the hearts system.
|
You could allow them to be pushed or pulled like a block. That's always fun.
|
| All times are GMT +2. The time now is 07:36 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.