creating an "trigger_hurt" entity
i just dont get it how to create an entity :oops:
can someone explaine me (on an example if you like, i need a trigger_hurt of 1 dmmg evry second) thx |
Code:
I think that's how you would do it in engine. |
thx, do you allso know how you can teleport it to somewere?
Code:
dont work (i used id not 0 :? ) Code:
(plugin "cstrike\addons\amxmodx\plugins\dig_you_in.amxx") |
Force your player to touch the trigger_hurt.
In engine you have force_touch(id, ent) |
entity_set_vector (Ent, EV_VEC_origin, entorigin)
will not change the origin. you need: entity_set_origin (Ent, entorigin) even if you used id, id is just place holder for a number seems you called the function for id = 0 |
thx try them both if i get home
|
your problem is that in hurt(id) there is no id variable that will be sent to it. You need to get the id some other way.
|
wouter: did you looked into engine_stocks.inc
Code:
|
| All times are GMT -4. The time now is 05:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.