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?