![]() |
|
|
#1 |
|
The Coding Machine
Join Date: Dec. 18th, 2001
Posts: 106
|
Hi!
I have a function that calls spawn() and I get it to basically spawn an explosion if an actor is hit, very simple. Works fine offline but as soon as I go online the Effects don't spawn at all, no-matter how I seem to replicate the function, the sounds work fine but the FX don't appear for clients! Does anyone have any ideas? Dex. |
|
|
|
|
|
#2 |
|
Join Date: Oct. 3rd, 2001
Location: Frankfurt/Main, Germany
Posts: 3,829
|
Replicated functions are only sent to the actor's owner.
Either spawn your effects client-side (initiated by some engine notification), or configure your effects actor to be replicated itself when it is spawned server-side. |
|
|
|
|
|
#3 |
|
The Coding Machine
Join Date: Dec. 18th, 2001
Posts: 106
|
Thanks for the reply man,
Sorry to be such an idiot, but how exactly would I do the 2 things you mentioned? Thanks again, Dex. |
|
|
|
|
|
#4 |
|
The Coding Machine
Join Date: Dec. 18th, 2001
Posts: 106
|
Does no-one know how to do this?
I'm kinda desperate I guess, lol, Dex. |
|
|
|
|
|
#5 |
|
Join Date: Oct. 3rd, 2001
Location: Frankfurt/Main, Germany
Posts: 3,829
|
Well... post the class header and the default properties of the effect class you're spawning (unless it's a built-in class---then just say its name) so we can look into it.
|
|
|
|
|
|
#6 |
|
The Coding Machine
Join Date: Dec. 18th, 2001
Posts: 106
|
Ok, basically, in my fireModes' 'DoFireEffect' function, I simple do a trace and return a material, then test that material according to it's type and do this:
'Spawn(class'pclImpactSmoke',other,,HitLocation, rotator(HitNormal));' (or another built in emmiter using the same syntax.) That's all ,and it doesn't ever show for clients! The reason I am handling the FX here and not in the attatchment where UT2003 spawns sparks, etc. is that when I do that, the FX are always one shot behind, ie: they spawn where I last fired : / Any ideas? Dex. |
|
|
|
|
|
#7 |
|
If my amazingly crap memory serves correctly, someone figured out what was causing that one shot behind thing and fixed it.
It may have been AD-Squirrel or SquirrelZero, or something to do with furry animals. Unfortunatly I think it was posted up mere days before the board was nuked and all that data was lost. Did anyone keep the code or know if it was posted elsewhere? It might serve you better to find the existing solution to the problem. Sorry I cant be of more help there. Last edited by Payback; 26th Jun 2003 at 05:25 AM. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|