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"

How can I call a function inside the gamemode from the character in blueprint?

Every time I cast to the Gamemode and then call the function, the cast fails, what's happening?

Product Version: UE 4.7
Tags:
more ▼

asked Jul 06 '15 at 05:46 PM in Blueprint Scripting

avatar image

Chef_Seth
18 5 10 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi,

Did you set your custom game mode in the world settings ?

more ▼

answered Jul 06 '15 at 06:33 PM

avatar image

rXp
316 22 17 39

avatar image Chef_Seth Jul 07 '15 at 06:09 AM

Yeah I set it, the gamemode is running all it's code fine, casting just doesn't seem to be working properly...

avatar image rXp Jul 07 '15 at 06:53 AM

It weird... Do you load new map during the map ? And also does the cast fail everywhere ?

avatar image Chef_Seth Jul 07 '15 at 04:22 PM

I don't load a new map, and I think the cast fails everywhere, but what do you mean by that? It fails every time I call it

avatar image Chef_Seth Jul 07 '15 at 05:22 PM

After doing some tests, it seems like casting to anything isn't working properly, and I can't get it to work with interfaces either. All I'm trying to do is move the character to a different place when a function inside of the gamemode is called, also when some actors spawn other actors I need those to be added to an array in the gamemode, but the cast never goes through when I try to do either of those. The picture is all the different methods I've tried for the player respawning alt text

capture.png (214.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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