Raised This Month: $305 Target: $400
 76%   Almost there!

Damage Entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 03-12-2021 , 08:57   Damage Entities
Reply With Quote #1

Hello.
i need a example that how can i make a lasermine Hits Sentry / dispenser so the Health of Sentry/Dispenser will be deducting until someone destroys lasermine.
Thanks in advance.
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 03-14-2021 , 09:05   Re: Damage Entities
Reply With Quote #2

anyone please help me out.
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
Old 03-14-2021, 09:28
CrazY.
This message has been deleted by CrazY.. Reason: duplicate
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-14-2021 , 09:30   Re: Damage Entities
Reply With Quote #3

You need to post the code, but I guess you just have to detect when the laser hit the sentry and call Ham_TakeDamage
__________________




CrazY. is offline
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 03-29-2021 , 05:19   Re: Damage Entities
Reply With Quote #4

Are you using my Lasermine plugin?
Then you only need to modify the following condition in lm_step_beambreak function.
PHP Code:
if (equali(classNameENT_CLASS_BREAKABLE) || equali(classNameENT_CLASS_LASER)) 
ex) if sentry gun classname is "sentrygun".
PHP Code:
if (equali(classNameENT_CLASS_BREAKABLE) || equali(classNameENT_CLASS_LASER) || equali(className"sentrygun")) 
__________________
+ARUKARI- is offline
Reply


Thread Tools
Display Modes

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 20:28.


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