#source parameter seem to be missing on

1 messages · Page 1 of 1 (latest)

gaunt valley
#

What is "Source Parameter here though?

unborn ivy
#

the actor that fired the bullet

gaunt valley
#

Move your messages to the thread if possible. Keeps it cleaner

gaunt valley
#

I also need to remind you to clean up your BP code. The straight lines and nodes all over the place make it really difficult for us to read your code.

#

Even if you don't care about that for yourself, we still need to be able to read it.

unborn ivy
#

player calls the first one, setting self to the source param

#

and the function spawn a bullet with the source param

I found out that the server can't see the bullet shot from clients so the previous discussion at first
but it ended up being the bullet somehow generated on hit events on the shooter on the shooter (only the bullet replicated on client, the bullet on the server is still fine)
(it is not fixed)

now I only have the problem of clients not seeing other client's bullets, as well as bunch of warnings

#

which is from this function, which I did multicast to ensure that the shooter doesn't see the bullet fired on server (I made the client fire a fake bullet at first, so he/she don't have to see the server bullet)

#

and during the fixing I used print strings and found out that when firing (firing from client and server, printing the source param),
except the shooter machine's bullet they don't print the source name

#

which lead to me thinking that maybe the lack of source param is the reason that in the client's screen, server's shots hit the actor on the server machine and disappeared (replicated one only, so although it doesn't affect the real bullet, clients can't see the bullets)
this function seemed to only prevent that on server

#

even making source param replicated doesn't fix things

#

other node except ones related with source is prolly useless

#

now they print different name for the source

#

PLEASE READ (to not waste time)

l
l
l
V

it is solved, I just put an authority switch before the on hit event, now the shot won't disappear