Thread: weapons
View Single Post
  #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 just really niceTricxta is just really nice
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