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

make a entity with spr?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 05-31-2011 , 09:06   make a entity with spr?
Reply With Quote #1

Code:
 
public make_spr(id)
{
 new Float:origin[3], ent = create_entity("env_sprite")
 pev(id, pev_origin, any:origin)
 set_pev(ent, pev_solid, any:1)
 set_pev(ent, pev_owner, any:id)
 set_pev(ent, pev_origin, any:origin)
 entity_set_model(ent, g_cntspr)
 set_pev(ent, pev_size, any:Float:{-6.5, -6.5, -6.5}, any:Float:{6.5, 6.5, 6.5})
 set_pev(ent, pev_renderfx, any:19)
 set_pev(ent, pev_rendermode, any:5)
 set_pev(ent, pev_renderamt, any:200.0)
 set_pev(ent, pev_framerate, any:1.0) // didn't work……
 set_pev(ent, pev_scale, any:1.0)
 set_pev(ent, pev_animtime, any:1.0)
 set_pev(ent, pev_spawnflags, any:SF_SPRITE_STARTON)
}
The spr stay at first farme. Did not play next farme.What is the problem?
(framerate didn't work?)

Last edited by Leech_v2; 05-31-2011 at 09:11.
Leech_v2 is offline
Old 05-31-2011, 09:13
Leech_v2
This message has been deleted by ConnorMcLeod. Reason: Don't bump until 2 weeks have passed since last post.
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-31-2011 , 10:19   Re: make a entity with spr?
Reply With Quote #2

What's with all the any: tags and why are you also combining them with Float: tags O.o ? Use the proper tags.

Anyway, set pev_spawnflags to SF_SPRITE_STARTON and it will work.
__________________
Hunter-Digital is offline
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 06:19.


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