Thứ Ba, 6 tháng 5, 2014

Script Commands A Plenty

A quick blog today as it's been all code and no play.  More great work on on the AI back-end by Dave, our trees have a whole new collision mode which uses physics cylinders for super smooth and appropriate collision for trees large and small, and I have added more commands to flesh out the scripting system and to help Dave on the AI.  As a way to beef up my blog, here is a complete cut and paste list of the current LUA commands. Remember, these do not include the new DarkAI commands which hook 'directly' into the DarkAI module :)

function Prompt(str)
function StartTimer(e)
function GetTimer(e)
function Destroy(e)
function CollisionOn(e)
function CollisionOff(e)
function Hide(e)
function Show(e)
function Spawn(e)
function Collected(e)
function MoveUp(e,v)
function MoveForward(e,v)
function MoveBackward(e,v)
function SetAnimation(e)
function SetAnimationFrames(e,v)
function PlayAnimation(e)
function LoopAnimation(e)
function StopAnimation(e)
function SetAnimationSpeed(e,v)
function GetAnimationFrame(e)
function CharacterControlUnarmed(e)
function CharacterControlLimbo(e)
function CharacterControlArmed(e)
function CharacterControlFidget(e)
function SetCharacterToWalk(e)
function SetCharacterToRun(e)
function RotateToPlayer(e)
function AddPlayerWeapon(e)
function AddPlayerAmmo(e)
function AddPlayerHealth(e)
function WinZone(e)
function Checkpoint(e)
function GetPlayerInZone(e)
function PlaySound(e,v)
function LoopSound(e,v)
function StopSound(e,v)
function SetSoundSpeed(freq)
function SetSoundVolume(vol)
function FireWeapon(e)

Most of my remaining work this week will be to support the AI system so the character can do more things, and of course plug those essential gaps in the general script command library as required.

Không có nhận xét nào:

Đăng nhận xét