View Single Post
  #2  
Old 08-24-2004, 10:16 PM
vahn32 vahn32 is offline
oner uf grawl +1 LOL
vahn32's Avatar
Join Date: Jan 2003
Location: See Bible.
Posts: 177
vahn32 is on a distinguished road
Send a message via AIM to vahn32
Ok, first of all it's not #//CLIENTSIDE, it's //#CLIENTSIDE.
Second of all you need to trigger the weapon itself to run a script in it serverside.
Example:
NPC Code:
if (actionserverside) {
//stuff here
}
//#CLIENTSIDE
if (weaponfired) {
triggeraction 0,0,serverside,WEAPONNAME,params;
}


To access any params sent from a triggeraction, use #p(0-#)
They are strings, so you convert them to integers for use in X and Y placements, use strtofloat(#p(#0));
Then again I haven't scripted in awhile but I think that's everything you need to know.
[Edit]Edited because I think I was under the influence of fatigue while typing.
__________________

Last edited by vahn32; 08-25-2004 at 01:09 AM..
Reply With Quote