Raised This Month: $ Target: $400
 0% 

Spawn an Entity at an Origin (Float) via Fakemeta?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
commonbullet
Veteran Member
Join Date: Oct 2005
Old 10-17-2006 , 10:30   Re: Spawn an Entity at an Origin (Float) via Fakemeta?
Reply With Quote #9

I've been very stupid to use the same names as engine functions; but they’re 100% fakemeta and they don’t work exactly like the engine functions (i.e. create_entity in engine doesn’t 'spawn' the entity, you would have DispatchSpawn after creating; I was trying to give you examples.)

And that’s the proper way to set origin.
Code:
create_entity_at(const classname[], Float:origin[3] = {0.0, 0.0, 0.0}) {     new ent     ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, classname))     if(ent) {         engfunc(EngFunc_SetOrigin, ent, origin)         dllfunc(DLLFunc_Spawn, ent)     }     return ent }

Last edited by commonbullet; 10-17-2006 at 10:34.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
 



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 04:53.


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