Blockland Forums > Modification Help
Event Help
<< < (5/5)
Lugnut:
you're calling fxDTSBrick::onMaskFalse on the player, not the brick.

function player::checkMask(%this, %obj, %client)
{
   if(%client.Gasmask == 0)
   {
      %this.onMaskFalse(%client);
¥ola:

--- Quote from: Lugnut1206 on June 17, 2012, 06:11:12 PM ---you're calling fxDTSBrick::onMaskFalse on the player, not the brick.

function player::checkMask(%this, %obj, %client)
{
   if(%client.Gasmask == 0)
   {
      %this.onMaskFalse(%client);

--- End quote ---

Wait-
What?
I didn't understand you at all mate
Lugnut:

--- Quote from: Lugnut1206 on June 17, 2012, 06:11:12 PM ---function player::checkMask(%this, %obj, %client)
{
   if(%client.Gasmask == 0)
   {
      %this.onMaskFalse(%client);

--- End quote ---
%this = the player
onMaskFalse is a BRICK not a PLAYER method/function
¥ola:

--- Quote from: Lugnut1206 on June 17, 2012, 06:16:46 PM ---%this = the player
onMaskFalse is a BRICK not a PLAYER method/function

--- End quote ---
So I should change onMaskFalse to a player function?
Or I should change checkMask to a brick function?
Lugnut:
probably put checkmask back to a brick function.
Navigation
Message Index
Previous page

Go to full version