REAPI Radius damage

Сообщения
43
Реакции
1
rg_dmg_radius

Can you send sample code about this?
I want it to deal damage 100 units away from an asset created on the map.
I'm creating the entity, I just need sample code.
 
Сообщения
505
Реакции
276
Помог
6 раз(а)
Код:
new Float:fOrigin[3]
get_entvar(pEntity, var_origin, fOrigin)

rg_dmg_radius(fOrigin, pEntity, pOwner, 100.0, 200.0, DONT_IGNORE_MONSTERS, DMG_GRENADE)
 
Сообщения
43
Реакции
1
Код:
new Float:fOrigin[3]
get_entvar(pEntity, var_origin, fOrigin)

rg_dmg_radius(fOrigin, pEntity, pOwner, 100.0, 200.0, DONT_IGNORE_MONSTERS, DMG_GRENADE)
Thank you so much but there is a mistake?

rg_dmg_radius(originF, Entity, pOwner, 50.0, 200.0, DONT_IGNORE_MONSTERS, DMG_GRENADE)

Код:
AMX Mod X Compiler 1.10.0.5392
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Error: Undefined symbol "pOwner" on line 367
Warning: Expression has no effect on line 367
Warning: Expression has no effect on line 367
Warning: Expression has no effect on line 367
Warning: Expression has no effect on line 367
Error: Expected token: ";", but found ")" on line 367
Error: Invalid expression, assumed zero on line 367
Error: Too many error messages on one line on line 367
What do I write instead of pOwder?
 
Сообщения
505
Реакции
276
Помог
6 раз(а)
kralik43, entity owner. If there is no owner, 0 (world).
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу