Animation using script

##is it possible to make animations appear through script, ##
im just planing to activate animation through another event using a value on an array using a return function

eg
game..blabla...blabla($gameSystem.animation_target("the id of the one activating")) <---what ever the script call it
in which animation_target returns target_array[id] <----- returns id of the one targeted
the target_array changes over time so i cannot just assign game..blabla...blabla('id of the one targeted')

So the question is, what is the call....
in the RMMV script call posted some time ago the script was "character.requestAnimation(id); this.setWaitMode('animation');"
but i dont know how to make it function on the map
You can change "character" into one of these:
- $gamePlayer (For example: $gamePlayer.requestAnimation(100)😉
- $gameMap.event(ID) (For example: $gameMap.event(1).requestAnimation(100)😉
holy... 😢 where have you been all my life?
thanks a lot!!!!!!!! :blush:

Original thread: https://forums.rpgmakerweb.com/threads/animation-using-script.77857/