nl_tokens: Choose a random point inside the bounding rectangle of an entity .
pl_tokens: function choosePointInEntity ( game , entity ) { var position = game . entities . getComponent ( entity , "position" ) ; var <mask> = game . entities . getComponent ( entity , "size" ) ; if ( size === undefined ) { return { "x" : position . x , "y" : position . y } ; } return { "x" : random . inRange ( position . x , ( position . x + size . width ) ) , "y" : random . inRange ( position . y , ( position . y + size . height ) ) } ; }