View Single Post
  #9  
Old 09-16-2010, 01:04 AM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
I'm actually trying to send a param server -> client. I think it was cbk that got me into the habit of putting npc.dropper = player.account; after my putnpc2's. The problem is, this.dropper can only be read from the clientside. and since I have my damage system and stat system on the clientside (so i can loop them faster without bogging down the npcserver and whatnot), when the damage near the npc is dealt, since it has to read from the npc dropper's stats, i need to send that player's account name though the clientside portion of the script. (in fact, when i first tried this, i was reading client.vars when it dealt damage, just to find out that it was reading off of each individual player's stats. causing players to receive a very wide variety of damage)

I really dont see why the npcdropper can't be automatically placed in the npc's variables when it's created on both the client and on the serverside portion of it.


but I digress.. I tried to invert that script so it goes server -> client but it didnt seem to work. I'm going to keep trying though. but just to make sure, triggeraction can trigger clientside functions too right? (Hoping the answer is yes because if not...)

edit: if not, maybe i could just move the damage triggers in the npc over to the serverside, then copy part of the damage portion of my weapon script onto the serverside. and then send over the data to the client from there.
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote