Raised This Month: $ Target: $400
 0% 

how to get entity id??


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
0920357689
Senior Member
Join Date: Apr 2008
Old 05-12-2010 , 19:30   how to get entity id??
Reply With Quote #1

why some time will get error ent_id ?

PHP Code:
  new Ent create_entity("info_target")
  new 
ent_name[32]
  
format(ent_name31"ct_%d",id)
  
entity_set_string(EntEV_SZ_classnameent_name)
 
  
entity_set_int(EntEV_INT_solidSOLID_TRIGGER);
  
entity_set_model(EntModel_ct);
  
entity_set_size(EntFloat:{-165.0, -165.0, -165.0}, Float:{165.0165.0165.0});
  
entity_set_origin(EntvOrigin);
 
  new 
ent_id = -1;
  
ent_id find_ent_by_class end_ident_name )
  if(
ent_id != -1)
  {
 
core
  


other question

find_ent_by_class AND find_ent_by_target

what differ ??


my english too bad >_<sorry

Last edited by 0920357689; 05-12-2010 at 19:34.
0920357689 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 03:32.


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