You are tired of, me don't ya?

I need to know how I do to change only line code in mobjinfo
If you meant something like "...to change only one line code...", then you can just use mobjinfo[X].y = z, where X is your mobj's MT_* constant, y is the variable you want to modify and z is its new value.

Example: To add anti-gravity to all the player objects, we have to add to MT_PLAYER's flags variable the MF_NOGRAVITY flag. The result would be:
mobjinfo[MT_PLAYER].flags = $|MF_NOGRAVITY

srb20121.gif
 
Thanks bro, hope all your wishes come true
Post automatically merged:

it's the same to flags2 or eflags, right? Because it's not working
 
Last edited:
it's the same to flags2 or eflags, right? Because it's not working
Nope. The flags variable of a mobj's info only supports MF_* constants (which represent normal mobj flags). mobjinfo tables don't have place for any other type of flag types.

To modify a mobj's flags2 or eflags, you preferably do it through a MobjThinker hook. In case you need it, use this link to see information about MobjThinker hooks.
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top