Posted by Pele on March 19, 1998 at 16:48:13:
In Reply to: Making people follow you:Pele if ya' see this help posted by Making people follow YOU without shooting you on March 19, 1998 at 15:21:15:
This is from MOTS' Bespin level. Enjoy :)
# Jedi Knight Cog Script
#
# S6L1_R2.cog
#
# R2, faithful droid
#
#
# [RK]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================
symbols
message startup
message pulse
thing R2
int player
end
#=======================================================================
code
startup:
SetPulse(1.0);
return;
pulse:
player=GetLocalPlayerThing();
AiSetMode (r2, 0x2009);
AISetMoveSpeed(r2, 1);
AISetLookPos(r2, GetThingPos(player));
AISetMovePos(r2, GetThingPos(player));
return;
end