x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

spawn actor replication [BP]

Hello!

I need some help with replication. First off, I want to explain whats happening: An actor is spawning a other actor, should then give him the same tag as it has himself (teamname) and should then change the material based on the tag.

Here some logic about when the actor will get spawned Here the actual spawn logic

I already checked a few things and the problem seems to be that the set array element doesnt work. (I checked with textrenders the tags of the thing that spawns the things, and thos have the correct names) Just the "Set Array Elem" doesnt do as I thought it would. (again confirmed by a text render component)

So wheres my misstake?

(PS: it works on the server as it should)

€dit1: allright, on the client the spawned stuff is grey and then goes its way (it has a Ai that moves it) but one of them is hanging in correct colors at the spawnpoint!!!!! when i unchecked the "spawn even if colliding" i get "accessed none "call function finish spawning actor" .......... etc error messages.

alt text

Product Version: Not Selected
Tags:
_minioinspawn1.jpg (304.5 kB)
_minioinspawn2.jpg (443.9 kB)
_minioinspawn3.jpg (660.7 kB)
more ▼

asked Mar 19 '15 at 02:58 AM in Blueprint Scripting

avatar image

t0b4cc0
61 9 15 20

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I solved it by using another variable called teamname, set it on rep notify. I now handle the material logic in the notify function (in the minion - the spawned actor itself) so everytime the variable gets changed it will call the materilachange function on all clients too - here a screenshot:

alt text

I made the function that spawns the minion to "NOT REPLICATE" and only executable by authority [with authority switches] (since the actor itself is replicating that works great)

The whole spawn actor event looks still the same, except that all that now comes after "set array elem" is "SETw/notify" on the teamnamevariable that I talked about in the beginning.

repnotify.jpg (182.9 kB)
more ▼

answered Mar 19 '15 at 12:09 PM

avatar image

t0b4cc0
61 9 15 20

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question