Raised This Month: $51 Target: $400
 12% 

Make entity kill player if he blocked


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obada8
Junior Member
Join Date: May 2016
Old 02-03-2018 , 11:36   Make entity kill player if he blocked
Reply With Quote #1

Hello all,

I need to know how to make the entity like: train, vehicle, tracktrain, door Can kill player if he blocked.

Thanks in advance.
Obada8 is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 02-07-2018 , 06:39   Re: Make entity kill player if he blocked
Reply With Quote #2

Some moving entities such as doors have an integer attribute for how much damage to deal when blocked, I think most have it at 0, try modifying that
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 02-07-2018 at 06:40.
aron9forever is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 02-07-2018 , 09:40   Re: Make entity kill player if he blocked
Reply With Quote #3

/**
* Description: Normally called whenever one entity blocks another from moving.
* Forward params: function(this, idother);
* Return type: None.
* Execute params: ExecuteHam(Ham_Blocked, this, idother);
*/
Ham_Blocked,
jimaway is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode