Difference between revisions of "API:Ogre CampSpot"
From ISXOgre
(→Members) |
|||
Line 24: | Line 24: | ||
* Returns: The relative modifications that take place. | * Returns: The relative modifications that take place. | ||
* Example: If you set a relative campspot of X+20, Y+0, Z-10, this would return 20,0,-10. | * Example: If you set a relative campspot of X+20, Y+0, Z-10, this would return 20,0,-10. | ||
+ | === Get_X === | ||
+ | * Type: float | ||
+ | * Returns: X coordinate of RelativeCampSpot | ||
+ | * Example: If you set a campspot at location 100,100,100, and relative of 20,0,-10, this would return 120. | ||
+ | === Get_Y === | ||
+ | * Type: float | ||
+ | * Returns: Y coordinate of RelativeCampSpot | ||
+ | * Example: If you set a campspot at location 100,100,100, and relative of 20,0,-10, this would return 100. | ||
+ | === Get_Z === | ||
+ | * Type: float | ||
+ | * Returns: Z coordinate of RelativeCampSpot | ||
+ | * Example: If you set a campspot at location 100,100,100, and relative of 20,0,-10, this would return 90. | ||
+ | |||
== Methods == | == Methods == | ||
=== ClearAll(ForWho) === | === ClearAll(ForWho) === |
Revision as of 01:56, 8 August 2014
This page is intended for users wishing to modify OgreBot's campspot properties via code/scripting.
Contents
General Information
Released with: OgreBot V17.025
TLO: Ogre_CampSpot
Scope: Created and destroyed with OgreBot being active.
Note: The parameter "ForWho" uses OgreBot's internal methods to determine if it is intended for you. This includes but not limited to, class, subclass, all, and toonname.
Members
Get_AbsoluteCampSpot
- Type: point3f
- Returns: The unmodified campspot set for the toon.
- Example: If you set a campspot at location 100,100,100, this would return 100,100,100.
Get_RelativeCampSpot
- Type: point3f
- Returns: The modified by relative campspot for the toon.
- Note: If no relative change was made, then this will be equal to AbsoluteCampSpot.
- Example: If you set a campspot at location 100,100,100, and relative of 20,0,-10, this would return 120,100,90.
Get_RelativeMods
- Type: point3f
- Returns: The relative modifications that take place.
- Example: If you set a relative campspot of X+20, Y+0, Z-10, this would return 20,0,-10.
Get_X
- Type: float
- Returns: X coordinate of RelativeCampSpot
- Example: If you set a campspot at location 100,100,100, and relative of 20,0,-10, this would return 120.
Get_Y
- Type: float
- Returns: Y coordinate of RelativeCampSpot
- Example: If you set a campspot at location 100,100,100, and relative of 20,0,-10, this would return 100.
Get_Z
- Type: float
- Returns: Z coordinate of RelativeCampSpot
- Example: If you set a campspot at location 100,100,100, and relative of 20,0,-10, this would return 90.
Methods
ClearAll(ForWho)
- Clears CampSpot
- Clears Relative Loc
- Clears Zone Name
ClearCampSpot(ForWho)
- Clears CampSpot
ClearRelativeLoc(ForWho)
- Clears Relative Location
Set_HowFar(ForWho,HowFar)
- Sets HowFar. Default is 125.
Set_HowClose(ForWho,HowClose)
- Sets HowFar. Default is 1
Set_CampSpot(ForWho, HowClose, HowFar)
- Alias of Set_CS
- Turns CampsSpot On 'ForWho', and also sets HowClose and HowFar if passed, otherwise uses defaults.
Set_Relative(ForWho, XDiff, YDiff, ZDiff)
- Sets the relative differences.
- For example: If campspot is set at 100,100,100, and the relative is set to x+20 and Z-10, this toons effective campspot would be: 120, 100, 90. Negative numbers are permitted.
Set_ChangeCampSpot(ForWho, XLoc, YLoc, ZLoc)
- Changes camp spot.