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"

Is it possible to write locationdata from an Actor into a Data Table?

Hey, is it possible to write locationdata from an Actor into a Data Table? With an Timeloop or an KeyPress or Somthing like that?

Product Version: UE 4.19
Tags:
more ▼

asked Apr 27 '18 at 01:29 PM in Blueprint Scripting

avatar image

Wuenschelrute
1 1 1

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

2 answers: sort voted first

from all ive seen its not possible to write data into a datatable at runtime. datatables are meant for referencing things only, what you would want to use is an array of structs. using an array of structs would allow you to have the same basic functionality as a datatable but would allow you to write and save data into it. you could also take the information from a datatable and use it to initialize the array at the beginning of the game.

more ▼

answered Apr 27 '18 at 02:22 PM

avatar image

ThompsonN13
10.1k 33 9 23

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

No, Data Tables are static and read only. You'd need to rewrite them.

You can save data into an array of structs (which the DataTable is already using anyway). And then store the array in a SaveGame object.

more ▼

answered Apr 27 '18 at 02:21 PM

avatar image

Everynone
13.7k 74 25 57

avatar image ThompsonN13 Apr 27 '18 at 02:22 PM

still beating me to the punch haha 30 seconds faster this time

avatar image Wuenschelrute Apr 27 '18 at 03:30 PM

Thanks for the fast answer i try to save the Data into an Array of structs

(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