by linux_man007 » Sat Apr 10, 2004 5:54 am
What I want is to be able to click on another actor so that I can move the actor by clicking again somewhere on the screen, (if the actor player-controlled), or set the actor's target by clicking the mouse while it is hovering over the actor you want to target, so that the player may either interact with the actor(if it is friendly) or attack it(if it is an enemy).
Since the time I brought this subject up, I've been working on a target lock script.
What I believe I have to do for targeting an actor at coordinates x,y is this:
Actor *lock;
lock = getactor(x, y);
So, to target a clone by the name of 'monster.0', I type this:
Actor *lock;
lock = getclone("monster.0");
And to target the collide actor, I type this:
Actor *lock;
lock = &
Am I correct?