can someone help me here ?? I want to know if i can add icon above the head..and that icon can be seen by both teams.Like that icon from sabotage ..when u have the bomb...the enemy see that KILL icon above your head !
can someone help me here ?? I want to know if i can add icon above the head..and that icon can be seen by both teams.Like that icon from sabotage ..when u have the bomb...the enemy see that KILL icon above your head !
Try that, not entirely sureCode:self.headIcon = newHudElem(); self.headIcon.x = self.origin[0]; self.headIcon.y = self.origin[1]; self.headIcon.z = self.origin[2] + 50; self.headIcon.alpha = 0.85; self.headIcon setShader( "shaderhere", 10,10 ); self.headIcon setWaypoint( true, true, false ); self thread updateHeadIcon(); updateHeadIcon() { self endon("death"); for(;;) { self.headIcon.x = self.origin[0]; self.headIcon.y = self.origin[1]; self.headIcon.z = self.origin[2] + 50; wait 0.1; } }
sat 24 (02-09-2011)
it doesnt work.other ideas ?
I have an anticamp script ...and when someone camp i want to atach this icon above his head.
And i add this lineCode:doheadicon() {self.headIcon = newHudElem(); self.headIcon.x = self.origin[0]; self.headIcon.y = self.origin[1]; self.headIcon.z = self.origin[2] + 50; self.headIcon.alpha = 0.85; self.headIcon setShader( "waypoint_kill", 10,10 ); self.headIcon setWaypoint( true, true, false ); self thread updateHeadIcon(); } updateHeadIcon() { self endon("death"); for(;;) { self.headIcon.x = self.origin[0]; self.headIcon.y = self.origin[1]; self.headIcon.z = self.origin[2] + 50; wait 0.1; } } DoCamp() { bla bla bla if(self is camping) { self thread doheadicon(); } }
on init() thread.Code:precacheShader( "waypoint_kill);
i didnt get "syntax error" in the main code.That mistake it's just here on the forum.Sorry.Do u know onother script that add icon above head ??take a look in _friendsicon.gsc from common_mp.ff file.
nobody knows??