AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Damage Entities (https://forums.alliedmods.net/showthread.php?t=331247)

DON KHAN 1 03-12-2021 08:57

Damage Entities
 
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.

DON KHAN 1 03-14-2021 09:05

Re: Damage Entities
 
anyone please help me out.

CrazY. 03-14-2021 09:30

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

+ARUKARI- 03-29-2021 05:19

Re: Damage Entities
 
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")) 



All times are GMT -4. The time now is 23:47.

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