Serverside onActionProjectile?
I cant seem to get it working on serversided scripts. Dont tell me Ill have to use a bunch of triggeractions !pissed!
|
Yeah, I was having this problem a while back. Did you use setshape() on serverside?
EDIT: Do you mean onActionProjectile() for players, or for an NPC? |
An NPC that uses showcharacter(). Ill try the setshape when I get back from work :O
|
Yeah, it doesn't seem to work on the serverside. What I did was just use a triggeraction.
|
I believe the proper function is onActionProjectile2()
|
I think it's onActionSProjectile(). Almost sure ;f
Nevermind, that's for serverside projectiles, says the wiki :oo: onActionProjectile() triggers on serverside when a "projectile has landed". There doesn't seem to be an event when something is hit for serverside stuff, guess you have to do those checks yourself ;P |
Quote:
|
Quote:
|
Quote:
|
You might be able to use an OnActionProjectile() clientside and then use a triggeraction() in response. That works for weapons... But it may be different for showcharacter NPCs.
|
ergh doing setshape didn't fix it, and yes its a clientside projectile hitting a serverside npc.
|
Allow me to clarify. I would add a clientside section with the "function OnActionProjectile()" code, and inside that function put a triggerserver() for a weapon. You could try a triggeraction() since it's not a weapon, and put the onaction in the serverside part of the code. That should work...
|
Ugh so I tried a trigger, why wont this work?
hurtenemy is a function I made in the serverside section of the script that does some other functions. I intentionally left out a few params on the triggeraction, just for testing purposes. Doesn't work though. NPC Code:function onActionClientproj() { |
Uh, setshape on the clientside portion of the class of the npc then?
|
Quote:
|
All times are GMT +2. The time now is 05:22 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.