A_JumpIfFlag

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: A_JumpIfFlag

Re: A_JumpIfFlag

by ZzZombo » Sat Nov 18, 2017 4:40 am

It might have failed simply because after resurrection, the resurrected monster copies friendliness of the one that did the resurrection.

Re: A_JumpIfFlag

by Kizoky » Fri Nov 17, 2017 6:50 pm

Is it really possible to do that? Last time I tried using A_CheckFlag it didn't work for some reason
what I wanted to achieve is to check if the resurrected monster is a friendly monster or not, and if it is it would replace itself with an another monster that has translation (whole monster is blue)

Re: A_JumpIfFlag

by Major Cooke » Fri Nov 17, 2017 6:37 pm

In DECORATE, there's already A_CheckFlag.

In ZScript all you have to do is <pointer>.b<flagname>.

Code: Select all

if (target && target.bSHOOTABLE)

Re: A_JumpIfFlag

by Blue Shadow » Fri Nov 17, 2017 6:37 pm

A_JumpIfFlag

by Kizoky » Fri Nov 17, 2017 5:44 pm

A_JumpIfFlag could be used on actors to read their own flag, so you could constantly change the flag and check it (would be useful to check if the actor is a friendly monster or not)

A_JumpIfFlag("State to jump", "Which flag")
If the given flag is not existing then it would just skip it

Top