Raised This Month: $ Target: $400
 0% 

entity not solid:(


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-07-2014 , 06:18   Re: entity not solid:(
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
Extraced from one of my plugins, it may help you:
Code:
static iEnt; iEnt = create_entity( "info_target" ) static Float: fEntityMins[ 3 ]; fEntityMins = Float:{ -30.0, -20.0, -21.0 } static Float: fEntityMaxs[ 3 ]; fEntityMaxs = Float:{  30.0,  20.0,  29.0 } engfunc( EngFunc_SetOrigin, iEnt, vecOrigin ) set_pev( iEnt, pev_solid, SOLID_BBOX ) engfunc( EngFunc_SetModel, iEnt, szModel ) engfunc( EngFunc_SetSize, iEnt, fEntityMins, fEntityMaxs ) set_pev( iEnt, pev_classname, szClassName ) //set_pev( iEnt, pev_movetype, MOVETYPE_FLY )//you may not need it.
Just that is enough to create a solid entity.
Avril i guess what was missing in your code was this: engfunc( EngFunc_SetSize, iEnt, fEntityMins, fEntityMaxs )
__________________
Jhob94 is online now
Reply



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 17:30.


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