View Single Post
  #1  
Old 07-20-2006, 08:49 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
ActionServerside() and player functions

Alright.
If I trigger onActionServerside() and call a player-function in the block, my params[] array will be overwritten by the player-function.

PHP Code:
//NPC Weapon
function onActionServerside() {
  echo(
"params[0] before call:" SPC params[0]);
  
player.DoStuff("abc","123","doremi");
  echo(
"params[0] after call:" SPC params[0]);
}

//#CLIENTSIDE
function onPlayerChats() {
  
triggerserver("gui",name,player.chat);

The first echo will give me player.chat
The second echo will give me 'abc'

Shouldn't the params[] for the weapon be inside the weapon object?
Reply With Quote