Jump to content

Scripting Help


fallingshells

Recommended Posts

Hello.

 

I need a bit of help with scripting an Activator:

 

When activated i want an item to be removed from your inventory and be replaced with another item.

 

how do i go about doing that ?

 

and can someone point me in the direction of opening a door with an activator (such as a switch)

 

Yourse sincerely

Darryl

A.K.A FallingShells

Link to comment
Share on other sites

In order to remove or add items, you'll want to use AddItem and RemoveItem. You'll probably also want to use GetItemCount to check if the item is present before you remove it too.

 

Opening and closing doors is usually best done via SetOpenState (often coupled with GetOpenState).

 

In order to run some code when an activator is activated, you'll want to use an OnActivate block.

 

If you're unfamiliar with the scripting language used in Fallout 3, I've written a tutorial aimed at beginners which you can find on my website - Scripting for Beginners

 

Cipscis

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...