
08-24-2004, 10:17 PM
|
|
dark overlord
|
 |
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
|
|
- //#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 |
|
|
|