Replicate "Player.StartItem" for a custom non-player class

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Replicate "Player.StartItem" for a custom non-player class

Postby Nash » Sun Jul 08, 2018 12:58 am

I want to replicate the functionality of Player.StartItem property for a custom, non-player class I'm making.

Specifically, the functionality of being able to specify a multiple list of arbitrary classes in the Default {} block and then have my custom class do what it will with that information.

How would I set this up?
User avatar
Nash Muhandes
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: Replicate "Player.StartItem" for a custom non-player cla

Postby ZzZombo » Wed Jul 11, 2018 10:22 pm

Well... Player.StartItem is actually just DropItem hijacked... so you can hijack DropItem for that as well. IIRC there is no much magic behind the latter, so replicating a similar system shouldn't be too hard, with the grammar being the only obvious obstacle I can think of.
Joined: 16 Jul 2012

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest