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 06-11-2012, 02:14 AM
InuKaT InuKaT is offline
Registered User
Join Date: May 2012
Posts: 2
InuKaT is an unknown quantity at this point
Exclamation weapons

For some reason, on the server Dudoria, custom made weapons arent working.
I have
if (playerenters){
toweapons Weapon;
}
if weaponfired {
randomshitgoeshere
}
The weapon sometime works on offline (say, this HUD i have, but when i put it online, it doesnt even transfer to the player)
How do i fix this?
Reply With Quote
  #2  
Old 06-11-2012, 04:23 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
You need to be using GS2
To add a weapon to a player through a player entering a level you have to remember to call it serverside.
PHP Code:
function onPlayerenters(){
  
player.addweapon("something");

The through rc you can define your weapon:
PHP Code:
//#CLIENTSIDE
function onWeaponfired(){
  
//do things

I can't remember if onweaponfired() is also called serverside, definately works on the clientside however.
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 07:26 PM.


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