#talk to npc
1 messages ยท Page 1 of 1 (latest)
Is it causing problems? The only way would be to make the NPC replicate across the clients at runtime via the prefab
Hm
Or at minimal make sure the entity has a rplcomponent
I'm trying to script a code to get a message of the npc, but it doesn't work.
rplcomponent? aight wait
Replication component, it's essential if you need the client and server to replicate
Ye this rplcomponent worked
as in fixed it? or you have it already?
fixed it
Also make sure when testing you use the PeerTool for testing anything that is replicated as the Workbench acts as both client and server
Had a ton of issues myself in the past where it works in the workbench but breaks on a server :)
Aight, thanks! ๐
You know how I can code effectively
I mean for every save, it loads the world again and again
that's a bit annoying
Have a debug world with just a simple plane
makes testing easier and make sure your debugger is set to client so that way it loads in faster
Not much else I can say atm as I am dealing with the same issues haha, definitely a pain when you need to test small changes constantly
I'm using the debug world of EL, but many prefabs doesn't load
I recommend using the MpTest_Basic world as a base
it gives you a simple plane to work on and is light enough that reloads shouldn't take anywhere as long
Aight, I'll check it out, thanks. You know a good documentation / youtube tutorial to learn the enfusion engine and scripting?
Honestly there isnt much material the wiki is useful for understanding the basics I'll grab some links
The SQF to Enforce is really useful as it shows some functions you may use quiet frequently
and Rabid Squirrel has some videos on scripting https://www.youtube.com/@rabid-squirrel
But you will find most of the good resources are within the game itself, You can search through the entire solution which finds all references for things so you can find methods that aren't documented
If you need anything you can always DM me and I can try to help figure out any problems you run into or you can post in the #enfusion_scripting channel like you did before someone usually knows or at the minimum points you in the right direction
Thank you very much! I will go through all links! ๐