Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Lycaon

scripted Missile states

Recommended Posts

I noted the Scripted Marine has a set of missile states named after each possible weapon. I'd like to reproduce this but the only way I found to set an actor's weapon is the SetMarineWeapon thingie, which is exclusive to Scripted Marines. Is there a way to use this feature in a newly created actor? I need to change the monster weapon on the fly since it's a boss battle and I'm going for specific weapons in specific moments.

Share this post


Link to post

You can define several types of "dummy" inventory items with MaxAmount 1, then use A_JumpIfInventory in your monster's DECORATE to jump into different states depending on presence/lack of these dummy inventory items in the monster's inventory, and finally, give or take these inventory items to/from the monster via ACS on the fly (or within its own DECORATE using A_GiveInventory / A_TakeInventory).

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×