PDA

View Full Version : CreateUnitWithProperties


demonds1
12-05-2007, 1:06 AM
I'm having troubles with starforge and the CreateUnitWithProperties trigger.
I know the parameters for it, but how do you set the properties for this new unit you create?

This is what i have:
CreateUnitWithProperties(10, Reaver, Top Spawn, P7, 0);

Its wierd because with other editors it gives you the option to click properties for the unit your about to create, but with starforge it doesn't.

SilverCrusader
12-05-2007, 8:20 AM
@Everyone else: Don't start rambling on about how SCMDraft2 pwnz StarForge and post 30,000 links to it. WE only need ONE person to post it.

@demonds1: Well, that is because they represent flags as StarForge calls it. They are really just byte values. Go here (http://www.maplantis.org/index.php?pg=wiki;id=35) and scroll down to the UNIT area, than read the values, those values should correspond to what StarForge uses.

demonds1
12-05-2007, 10:25 AM
ah, thank you very much. :)

SilverCrusader
12-05-2007, 12:18 PM
You're welcome. If you need any more assistance just ask. :)