Right
Veteran
- Messages
- 90
- Reaction score
- 53
- Points
- 793
Heres the code, i couldnt find a way for all the text to end after i die. help?
My suggestion would be a destory() but i dont know what to destory
Code:
doShowAmmo()
{
self endon("death");
self endon("disconnect");
CreateCStexts("ammo","clip","default",1.7,300,0);
CreateCStexts("ammo","sep","default",1.7,325,0);
CreateCStexts("ammo","stock","default",1.7,350,0);
self.CSt["ammo"]["sep"] setText("|");
while(!level.gameEnded)
{
weapon = self getCurrentWeapon();
ammoClip = self getWeaponAmmoClip( weapon );
ammoStock = self getWeaponAmmoStock( weapon );
self.CSt["ammo"]["clip"] setValue(ammoClip);
self.CSt["ammo"]["stock"] setValue(ammoStock);
wait .05;
}
}
My suggestion would be a destory() but i dont know what to destory