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
  #5  
Old 08-18-2009, 09:48 AM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
I've made a simple CTF-game times ago, and to show the flag by the player, I used a weapon I added to the player.
You could do the same and add a weapon to the players.
The script could be like:
PHP Code:
function onGlow() {
if ( 
this.glowmod ) {
setImg("light.png");
setcoloreffect(0.4,0.4,0.4,0.5);
this.player.x;
this.player.y;
this.level player.level;
onGlow;
 }
}
//you need to try if it works with client or serverside


//#CLIENTSIDE

function onPlayerChats() {
if (
player.chat == "setglow") {
this.glowmode = !this.glowmode
onGlow
;
 }

Well, as I said, I didnt script for a while so this script will have some fails in it, but its a beginn.
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
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 01:38 PM.


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