Raised This Month: $ Target: $400
 0% 

making a moon that has health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 03-12-2006 , 15:49   making a moon that has health
Reply With Quote #1

how to make a moon spawn that has a health
so when you kill the moon by attacking it, you trigger another public function

is this possible ?

i already made this:

Code:
public create_moon(){     new moon     moon = create_entity("env_model")     new Float:moonorigin[3]     moonorigin[0]=0.0     moonorigin[1]=0.0     moonorigin[2]=2000.0     entity_set_origin(moon,moonorigin)     entity_set_string(moon, EV_SZ_targetname, "MOON")     entity_set_model(moon,"models/moon/moon.mdl")     set_rendering (moon, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 16) }

but now how to make it spawn in the middle of the map ?
and how to give it a health so you can kill it by shooting?
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
 



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 20:23.


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