Game Development Community

could some one explain this method to me

by Anthony Rosenbaum · in General Discussion · 01/11/2002 (8:13 am) · 1 replies

function Armor::onTrigger(%this, %obj, %triggerNum, %val)
{
   // This method is invoked when the player receives a trigger
   // move event.  The player automatically triggers slot 0 and
   // slot one off of triggers # 0 & 1.  Trigger # 2 is also used
   // as the jump key.
}
where are triggers 0,1 and 2 in defined?
in the hard code if so where?
Anthony

#1
01/11/2002 (8:53 am)
on furthure review I find something in the player.cc that is called "updateMove()" and also "canJump" SO I am working on a jetlike behavior (to increace player verticle as long as key is pressed) I presume I have to make a new function called "canJet" but do I also add it too updateMove? where?how? Anthony

actually I just want this to happen if the player is in a vehicle so should this be in the vehicl sectino or is there something there