Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   seteffect (https://forums.graalonline.com/forums/showthread.php?t=74542)

Pimmeh 06-12-2007 09:11 AM

seteffect
 
I used this command in Offline mode a few times before but when I uploaded a script that used that
(I believe it was if (created){seteffect 1,0,0,0;} or something like this)
RC showed an error and it doesent work.
Is there a GS2 command?
The script is supposed to make the level look dark. Nice for insides IMHO

Skrobo2 06-12-2007 10:11 AM

NPC Code:
//#CLIENTSIDE
function onCreated() {
seteffect(0,0,0,0.4);
}



You should use the Graal Bible to find out the GS2 equivalents of GS1 commands/functions.

Pimmeh 06-12-2007 10:21 AM

Your right, im sorry. I keep forgetting that.../blush

Twinny 06-12-2007 11:37 AM

The problem wasn't that it was GS1: it was because you didn't have a clientside tag. If you see error reports in RC: it generally means the command was serverside instead of clientside.


All times are GMT +2. The time now is 09:13 PM.

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