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

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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Replicate "Player.StartItem" for a custom non-player class

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

by ZzZombo » Wed Jul 11, 2018 9: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.

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

by Nash » Sat Jul 07, 2018 11:58 pm

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?

Top