View Single Post
  #3  
Old 08-24-2004, 10:17 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
  • //#CLIENTSIDE
  • Weapon triggeractions take the form:
    triggeraction 0,0,serverside,weaponname,params;
  • They are received with the if (actionserverside) event, it is usually good to assign a name to the first parameter (and then check it on the serverside part) so it is easy to add other triggeractions to it later

Quote:
Originally Posted by vahn32
Example:
NPC Code:
if (actiondoop) {
//stuff here
}
//#CLIENTSIDE
if (weaponfired) {
triggeraction 0,0,serverside,WEAPONNAME,params;
}

Refer to bullet 3
Reply With Quote