View Single Post
  #1  
Old 03-02-2009, 04:40 PM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
ShootPARAMEQUALS

Well... maybe thats above my ability level but its very anyoning and one of my friends also wants to know.
PHP Code:
if (weaponfired){
  
setshootparams PARAMEQUALS;
//...
}

if (
actionprojectile) {
  if(
strequals(#p(index),PARAMEQUALS)) {
hurt 2;
freezeplayer 5;
 }

OK like you see the player gets hurt and freezed if the bullet hits.
Just it does that ALL THE TIME he gets hit by ANY weapon.
Is there another script as if(strequals(#p(index),PARAMEQUALS)) or maybe to check wich gani(bullet) exactly was shot?
Because this is REALLY anyoning if I want lots of diffrent weapons with other power/effect on player.
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote