Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2005, 08:46 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
Resolved: showani params

When a gani script shown by a showani uses parameters, they either aren't passed or can't be accessed.
I tested this on both v3 and v4.

The script I used:
PHP Code:
GANI ganiparamtest.gani
function onPlayerEnters() {
  
showimg(30,params[0],x,y);

PHP Code:
WEAPON Gani Params
function onWeaponFired() {
  
showani(400,player.x,player.y,0,"ganiparamtest","block.png");

If this were working properly, it would show block.png on the player when the weapon is fired.
Unless I screwed up the syntax, that's not the problem.
The GS1 equivalents of these scripts both work perfectly on v2.
Nothing happens on v3 or v4, even if it's GS1 or GS2.
Reply With Quote
  #2  
Old 09-29-2005, 09:06 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Also add some "echo" call.
Better use "if (playerenters)" otherwise the function parameters will overwrite params[]
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 06:12 PM.


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