#one of these? which one should i do,

1 messages · Page 1 of 1 (latest)

hardy jolt
#

@potent rover

potent rover
#

@hardy jolt Hey, so starting from the top, i want to make the flush toilet script and sound play for the faucet, you said you need to make an actions manager, and scripts over to faucet? how do i start going about that?

my attempt;

  1. i duplicated 'toilet_01' to my addon (scriptlearner) and got this
  2. found this script, but dont know how to override or add component

where do i start?

hardy jolt
#

If you want to add the action to something you would edit the prefab of the thing you want to add the action to and at the bottom of the properties window of that prefab is a button that says "+ add component", click it and search for actions manager, it will be appear unless the prefab already has one.

Now its a matter of copying everything from the toilet to whatever you want to add the flush action and sound to. This really isn't anything about scripting, at least I don't think it is. This is more or less just editing components inside a prefab. I have an example below of myself adding the flush action and sound to a faucet along with how the actionsmanager component of the faucet looks with the SCR_Fluchtoilet action added.

potent rover