hlmod.hu
https://hlmod.hu/

Szilárd model.
https://hlmod.hu/viewtopic.php?f=9&t=13001
Oldal: 1 / 1

Szerző:  laki5000 [2013.11.30. 20:06 ]
Hozzászólás témája:  Szilárd model.

Hello. Hogy kell megcsinálna, ha lehelyezek egy modelt úgy, hogy az egy szilárd model legyen? pl itt:
SMA Forráskód: [ Mindet kijelol ]
  1. public Akna(id)
  2. {
  3.  
  4. akna[id]--
  5.  
  6. new Float:origin[3];
  7. entity_get_vector(id, EV_VEC_origin, origin)
  8.  
  9. new ent = create_entity("info_target")
  10. entity_set_string(ent ,EV_SZ_classname, "Mine")
  11. entity_set_edict(ent ,EV_ENT_owner, id)
  12. entity_set_int(ent, EV_INT_movetype, MOVETYPE_TOSS)
  13. entity_set_origin(ent, origin)
  14. entity_set_int(ent, EV_INT_solid, SOLID_BBOX)
  15.  
  16. entity_set_model(ent, "models/mine.mdl")
  17. entity_set_size(ent,Float:{-16.0,-16.0,0.0},Float:{16.0,16.0,2.0})
  18.  
  19. drop_to_floor(ent);
  20.  
  21. entity_set_float(ent,EV_FL_nextthink,halflife_time() + 0.01)
  22.  
  23. set_rendering (ent, kRenderFxHologram, 255,255,255, kRenderTransColor, 1)
  24.  
  25. return PLUGIN_CONTINUE
  26. }

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/