Raised This Month: $ Target: $400
 0% 

EngFunc_CreateNamedEntity problem.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Silencer123
Veteran Member
Join Date: Jul 2006
Old 05-11-2007 , 16:39   EngFunc_CreateNamedEntity problem.
Reply With Quote #1

Code:
ent=engfunc(EngFunc_CreateNamedEntity,"weapon_uziakimbo")
This results in "Can't create entity: " being printed into my console and creating
the most impressive entity bugs I have ever seen. Monsters fall through the floor.
Items hop around. Gibs float. Monsters go invisible or shoot through walls. The only thing I
missed was myself being transformed into a flying gargantua sprite with wings.

The cause probably is that where i wrote "weapon_uziakimbo" there is meant to
be an integer, so fakemeta_const.inc say - but how can a number be a specific entity
classname? Does each predefined classname in a game/mod have its own number with it?
What is this number then? *confused*
Oh and I can NOT use the give_item function for this,
because I have to set this entities spawnflags to 1024 to disable respawn.
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 05-11-2007 at 16:42.
Silencer123 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 06:45.


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