Raised This Month: $12 Target: $400
 3% 

strange bug when creating entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 05-14-2015 , 19:17   strange bug when creating entity
Reply With Quote #1

Code:
	pl = create_entity("info_target")
	set_pev(pl, pev_classname, player_class)
	set_pev(pl,pev_origin,vSrc)	
	entity_set_model(pl,playermodel)
	drop_to_floor(pl)
debug shows me classname "worldspawn" . when I put create_entity("hostage_entity") all fine.
I want custom classname , to use think , hostage think too fast, I cant slowdown it.
so it shows worldspawn - no matter what I set in player_class
I tried set_pev(pl, pev_classname, "werf23f2e3f42f") , abrakadabra , but still .... worldspawn.

how to fix?
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 05-14-2015 at 19:18.
avril-lavigne is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-14-2015 , 19:23   Re: strange bug when creating entity
Reply With Quote #2

Give a try with engine:
entity_set_string(pl, EV_SZ_classname, player_class)
__________________
Jhob94 is offline
Old 05-15-2015, 04:15
Kowalsky
This message has been deleted by asherkin.
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 18:14.


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