Solved Help me with aimove commands

Question that is answered or resolved.

Smart Kitty

Well-known member
Hi Hi. I write to know if you can change the behavior of an npc/enemy with scripts.. I am using changeentityproperty(ent,"aimove,X); but nothing happens. note: the X is the aimove values such as chase, avoid,...etc. If someone can tell me if I'm doing it wrong or something I would be very grateful :)
 
Solution
That works i use it


Code:
spawn  owl
@script void main() {
changeentityproperty(getlocalvar("self"), "aimove", openborconstant("AIMOVE1_CHASE"));
} @end_script
        map 1
    coords  -150  330
    at  0
Several AI Flags do nothing at all (never completed), and you also have to watch out for contradictory flags.

You'll need to post your code (use code tags) for us to really see exactly what's wrong.

If the flags themselves won't give behavior you need, there are still plenty of ways to script it.
 
That works i use it


Code:
spawn  owl
@script void main() {
changeentityproperty(getlocalvar("self"), "aimove", openborconstant("AIMOVE1_CHASE"));
} @end_script
        map 1
    coords  -150  330
    at  0
 
Solution
Hey, community is pretty small so whenever i can help then i do, heres small txt file i did with some useful scripts cheat sheet , i use it all the time
You can find some small scripts and syntax for stuff that you might need later, list of properties etc.
 

Attachments

Back
Top Bottom