I'm trying to get a camera to follow the player when he enters a sector, but my puny brain is far to small to understand the equation I need to do this! Here's what I have thus far (don't mind the stupid equation I tried )
any help is appreciated!
------------------
Those who stare in the eyes of death and laugh will be the first to go.
Code:
# Jedi Knight Cog Script # # Filename.COG # # Description # # # This Cog is Not supported by LucasArts Entertainment Co symbols sector camersec linkid=1 thing camera thing player local vector playerpos local message startup message entered message pulse message exited end # ======================================================================================== code startup: player = GetLocalPlayerThing(); entered: if(GetSenderRef() == camersec) { SetCameraFocus(0,camera); SetPulse(.01); } return; pulse: playerpos = (GetThingPos(player) - GetThingPos(camera)); SetThingLook(camera,playerpos); exited: SetPulse(0); # ........................................................................................ end
any help is appreciated!
------------------
Those who stare in the eyes of death and laugh will be the first to go.
Those who stare in the eyes of death and laugh will be the first to go.