View Single Post
  #5  
Old 09-27-2002, 06:55 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
You mean instead of something like this:
NPC Code:

if (actionserverside)
{ for (i=0;i<allplayerscount;i++)
{ if (strequals(#a,#p(0)))
{ id = playerid;
this.bombs = players[id].bombs;
readbombs();
}
}
}
//#CLIENTSIDE
if (weaponfired)
{ triggeraction 0,0,serverside,NPC,#c or what not;}

function readbombs()
{ what you want to do with it;}


That DOES seem like an awful lot of work... perhaps make a simple trigger like that built into an NPC, like triggeraction 0,0,serverside,-triggers,bombs,#c; or something. I was considering making a hidden NPC named -triggers so that I could use common triggers whenever.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote