Raised This Month: $ Target: $400
 0% 

Entity model & Kill toucher


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
LynX
Veteran Member
Join Date: Oct 2004
Old 05-06-2005 , 11:50   Entity model & Kill toucher
Reply With Quote #1

1. How can I make that entity I spawn, and I give him a model, it plays a animation as long as it exists in world?

2. How to make that when someone touches you, it is automatically killed
NOTE I have entity spawned on player, so it is probably easier to make when some1 touches that entity it dies?
Could you show me an example to create a entity, which follows player and has some model, and when some1 touches it it dies?
Please show it on this piece of code below ( you need to add when touches that entity the player who touched it dies, and to make it follows you ( but not gets your animations, just stays idle ).

Code:
new ModelKillEnt[33] public NewEnt(id) { ModelKillEnt[id] = create_entity(env_model) entity_set_model(ModelKillEnt[id],  "miscstuff/entitykiller.mdl") // it is precached later, just not here in snippet // do the follow stuff here // and do the kill stuff somewhere in code return PLUGIN_HANDLED }
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
 


Thread Tools
Display Modes

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 16:47.


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