SC_ApplyDamageToArea

Usage

void SC_ApplyDamageToArea( int CentreX, int CentreY, int CentreZ, int radius, int damage, int OwnerObjectId)


Summary

Appliy damage to a given 3D cube area.


More Information

Use this function to defined cube in 3D space and apply a given amount of damage to all objects in that cube.

CentreX, int CentreY, int CentreZ = The 3D coordinates for the centre of the damage cube.
radius = Half the width, height and depth of the cube.
damage = The amount of health to remove (or add - use minus values to add health).
OwnerObjectId = The object ID to not hurt (specify -1 to hurt all objects).


Example

// Damange all objects neat 100, 0, 100 expect the player
SC_ApplyDamageToArea( 100, 0, 100, 400, 20, SC_GetPlayerObjectId() );


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 by James Bunting
www.jbgames.com/games/rod3d/

This page was automatically generated by jbgames Script Docs Generator