Cant find a script

Hello I am currently learning how to Gscript its actually easy i just cant find one command i am making a new bomb called icebomb im trying to make a command that if player gets hit by explosion they freeze i tried freezeplayer 5seconds; but all that does is delay the bomb explosion please help.

oh god…

I think you might want a triggeraction, since I don’t know any other way besides that to put a “status” on someone else. x_x
Very nice concept though, +10 Points for creativity. :smiley:

use triggeractions… theres an example of freezing in newfeatures2001.txt.

Since im uber bored I’ll write you one though…

the weapon

if (playerenters && !isweapon)toweapons freeze bomb;
if (weaponfired)putnpc block.png,freezebomb.txt,playerx+1.25+(vecx(playerdir)*2),playery+2+(vecy(playerdir)*2);

the bomb text file(freezebomb.txt)

if (playerenters){
  sleep 3;
  for (this.i=0;this.i<9;this.i++)triggeraction x-1+(this.i%3),y-1+int(this.i/3),freeze,5;
  destroy;
}

and the weapon to detect being hit by a bomb

if (playerenters && !isweapon)toweapons -freeze;
if (actionfreeze)freezeplayer strtofloat(#p(0));

yup, defoz not hard :smiley: have fun lol.

If it isn’t wrong I have probly messed up some words and in that case just refer to commands.rtf to find the proper syntax.

Treat this script as a lesson and you will be well on your way to not getting trolled :)[COLOR=“Silver”]

---------- Post added at 11:53 AM ---------- Previous post was at 11:46 AM ----------

[/COLOR]Oh yer… and either replace block.png with a bomb image or use setcharani in the text file to animate the bomb. Remember you requested a bomb script not a bomb image and gani to go with it :0

There is some use to giving people scripts, I found…
Because there is always a better way to do something, and I wanted to see how someone could go about doing that.

Don’t think I am condoning it though. :expressionless:

Okay i got the image and script two things i need to ask i need a gani expert to please make the gani i have no idea how i tried and read tutorials but cant figure out and also how do i make it so that when i press D it lays the freeze bomb instead of a regular bomb. Heres image for the Gani

Get an admin to close 'er up, and start a new request. Sorry, all you asked for was:
[QUOTE=Fatal1500;79759] to make a command that if player gets hit by explosion they freeze[/QUOTE]