Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 +2. The time now is 08:20 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.