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 07-11-2004, 10:37 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
showpoly question

How come this npc does not show the poly
that I want it to draw?
It looks right to me, and the item placement for
the x and y check work.
Ideally I want just a line to draw from the player then to go up
till it hits an onwall or the top of the level.

NPC Code:

// NPC made by Prozac
if (created || playertouchsme) {show; toweapons Line npc;}

if (weaponfired)
{
//draw a line going up this level or until till onwall
this.y=playery-.5;
this.x=playerx+1;
while (this.y>0 || !(onwall(this.x,this.y)))
{
showpoly 10,(playerx,playery,this.x,this.y);
changeimgvis 10,2;
changeimgcolors 10,1,1,1,1;

//the bombs show up .. why not the line?
// putbomb 1,this.x,this.y;

this.y--;
sleep .05;
}
}



Any help would be appreciated!
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
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 03:13 AM.


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