Jump to content

Recommended Posts

Posted

Ok I can't figure this out. In theory it should all work (At least in a C# thinking way).

I want to disable the Obbi/AGT on a certain condition. So I create a kismet sequence that waits 7 seconds and then activates the "Modify Property" command. It has the building object (In this case Obbi) connected to the Target and I set to change to following property "Rx_Building_Obelisk.bLaserDisabled" to the Property Value: True (Also tried 1).

But whatever I do, the darned thing wont deactivate. Am I a complete idiot? Or am I missing something. It's just changing a property...

(Something like RX_Building_Obelisk_1.Rx_Building_Obelisk.bLaserDisabled = True OR RX_Building_Obelisk_1.setbLaserDisabled(True); If we talk in programming languages)

Kismet.png

Posted

Oh I havent seen that post. Sorry!

So, I can just import the code into kismet? Or do I need to import the script another way? I'm new to unreal scripting, but not new to coding. (C# all the way ^.^)

  • Totem Arts Staff
Posted

You should import the whole script. At the moment of writing, it seems that just kismetting the building out is not possible due to the setup being inside a class inside the Internal class which is inside the placeable actor.

Long story short, too much classception, derivating classesand rescripting a particular set of functions seem to be much simpler

offtopic : I believe UScript is more similar to Java than it is to C#

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...