Raised This Month: $ Target: $400
 0% 

Solid entity wont be solid ...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kossolax
AlliedModders Donor
Join Date: Jan 2008
Location: Belgium
Old 02-03-2009 , 12:20   Solid entity wont be solid ...
Reply With Quote #1

Hello

I would like to spawn a solid entity but its wont work


here is my code


PHP Code:
public test(id) {
    new 
Float:Aim[3], Float:origin[3]
    
    
velocity_by_aim(id64Aim)
    
pev(idpev_originorigin)
    
origin[0] += Aim[0]
    
origin[1] += Aim[1]

    new 
ent spawn(idorigin)
    
g_ent[id] = ent
}
public 
spawn(idFloat:origin[3])
{    
    new 
ent create_entity("info_target");
    if(!
ent) return 0

    
new class_name[32]
    
format(class_name,31,"ent_test");
    
    
set_pev(entpev_classnameclass_name,31)
    
set_pev(entpev_movetypeMOVETYPE_PUSH// TOSS 
    
set_pev(entpev_solidSOLID_BBOX)
    
engfunc(EngFunc_SetModelent"models/base.mdl")    
    
engfunc(EngFunc_SetSizeentFloat:{-16.0, -16.00.0}, Float:{16.016.032.0} )

    
set_pev(entpev_ownerid)
    
set_pev(entpev_health500.0)
    
set_pev(entpev_takedamage1)
    
    
set_pev(entpev_originorigin)
    
    
engfunc(EngFunc_DropToFloorent)
    
    return 
ent

its spawn the entity but cannot be solid


anyone can help me please ?

Last edited by kossolax; 02-03-2009 at 12:29.
kossolax 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 01:54.


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