Raised This Month: $ Target: $400
 0% 

creating an "trigger_hurt" entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 05-07-2006 , 15:52  
Reply With Quote #3

thx, do you allso know how you can teleport it to somewere?

Code:
public hurt (id) {         new Ent = create_entity("trigger_hurt")     DispatchKeyValue(Ent, "dmg", "1")     DispatchSpawn(Ent)     set_size(Ent, Float:{-32.0, -32.0, -32.0}, Float:{32.0, 32.0, 32.0})           new Float:entorigin[3]     entity_get_vector (id, EV_VEC_origin, entorigin) // line 117     entity_set_vector (Ent, EV_VEC_origin, entorigin)       }

dont work (i used id not 0 )
Code:
(plugin "cstrike\addons\amxmodx\plugins\dig_you_in.amxx")
L 05/07/2006 - 21:49:53: [AMXX]    [0] dig_you_in.sma::hurt (line 117)
L 05/07/2006 - 21:50:03: [AMXX] [ENGINE] Invalid player 0 (not in-game)
L 05/07/2006 - 21:50:03: [AMXX] Displaying call trace
wouter is offline
 



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 05:00.


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