Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-05-2010, 11:38 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
TProjectile.destroy()

does not seem to work.

I know I'm getting the projectile correctly because echoing the projectile's data works just fine...it just won't let me kill it!

PHP Code:
temp.proj player.level.projectiles[temp.ind];
echo(
temp.proj.objectType()); // echoes TProjectile
echo(temp.proj.params); // echoes properly as well
temp.proj.destroy(); // doesn't work, but sometimes produces an error. 
__________________

Last edited by salesman; 06-05-2010 at 11:49 PM..
Reply With Quote
  #2  
Old 06-06-2010, 12:00 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I think projectiles are read-only?
Reply With Quote
  #3  
Old 06-06-2010, 12:04 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by DustyPorViva View Post
I think projectiles are read-only?
Not everything on serverside, and /scripthelp says I should be able to destroy it.
Quote:
Script help for 'projectile':
TProjectile.destroy()
You can even grab a projectile and change its parameters if you want:
PHP Code:
echo(temp.proj.params); // echoes {20, account, etc}
temp.proj.params "test";
echo(
temp.proj.params); // echoes "test" 
__________________
Reply With Quote
  #4  
Old 06-06-2010, 01:56 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Are you trying to destroy clientside or serverside?
__________________
Reply With Quote
  #5  
Old 06-06-2010, 02:07 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by cbk1994 View Post
Are you trying to destroy clientside or serverside?
serverside
__________________
Reply With Quote
  #6  
Old 06-06-2010, 02:11 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by salesman View Post
serverside
I can't imagine why it would work serverside. Projectiles are handled completely clientside after shot and aren't synced with serverside.
__________________
Reply With Quote
  #7  
Old 06-06-2010, 02:36 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by cbk1994 View Post
I can't imagine why it would work serverside. Projectiles are handled completely clientside after shot and aren't synced with serverside.
hmm, you're right. I just tested it. I can change the values of the params, but when it hits something and calls onActionProjectile() on the clientside, it still has the old parameters.

I thought maybe it was synced like clientr.vars or something.

Guess I'll be using custom projectiles =p
__________________
Reply With Quote
Reply


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:14 AM.


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