Raised This Month: $ Target: $400
 0% 

How to create one Ent in a random place of the map?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pacheco
Senior Member
Join Date: Jul 2011
Old 09-20-2012 , 17:45   How to create one Ent in a random place of the map?
Reply With Quote #1

I tried,

PHP Code:
//fakemeta pwns n00bs
new ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"));
set_pev(shotpev_classname"custom_class_name");
new 
origin[3] = {0,0,0};
//also you left out a bunch of stuff...
new Float:maxs[3] = {0.2,0.2,0.5};
new 
Float:mins[3] = {-0.2,-0.2,-0.5};
set_pev(entpev_originorigin);
engfunc(EngFunc_SetSizeentminsmaxs); //set size
set_pev(entpev_solidSOLID_BBOX); //make solid
set_pev(entpev_movetypeMOVETYPE_FLYMISSILE); //set movetype
set_pev(entpev_framerate1.0);
set_pev(entpev_rendermode5);
set_pev(entpev_renderamt255.0);
set_pev(entpev_scale1.20);
engfunc(EngFunc_SetModelent"models/model.mdl"); 
Spoiler


http://forums.alliedmods.net/showthread.php?p=500491

but didn't work.. How i can do it? Create one ent in a random place of the map.. (In the ground)
__________________




Last edited by pacheco; 09-20-2012 at 17:48.
pacheco 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 08:16.


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