| net.gtaun.shoebill.object.Actor |
Created by marvin on 01.05.15 in project shoebill-api. Copyright (c) 2015 Marvin Haschker. All rights reserved.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | INVALID_ACTOR | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
applyAnimation(String animLib, String animName, float animSpeed, boolean loop, boolean lockX, boolean lockY, boolean freeze, int time)
Applies a animation for the actor
| ||||||||||
| abstract void |
clearAnimation()
Clears all animations from the actor
| ||||||||||
| abstract static Actor | create(int modelid, Vector3D position, float angle) | ||||||||||
| abstract static Actor | create(int modelid, float x, float y, float z, float angle) | ||||||||||
| abstract static Actor | create(int modelid, AngledLocation loc) | ||||||||||
| abstract static Actor |
get(int id)
Get a actor by it's id
| ||||||||||
| abstract static Collection<Actor> |
getActors()
Get all actors available
| ||||||||||
| abstract float |
getAngle()
Gets the facing angle of the actor
| ||||||||||
| abstract float |
getHealth()
Get the current health of the actor
| ||||||||||
| abstract int |
getId()
Get the internal id of the actor
| ||||||||||
| abstract AngledLocation |
getLocation()
Gets the location of the actor
| ||||||||||
| abstract int |
getModel()
Gets the model if the actor
| ||||||||||
| abstract static int |
getPoolSize()
Gets the actor's pool size
| ||||||||||
| abstract int |
getVirtualWorld()
Gets the virtual world of the actor
| ||||||||||
| abstract boolean |
isActorStreamedIn(Player player)
Checks if the actor is streamed-in for a specific player
| ||||||||||
| abstract boolean |
isInvulnerable()
Gets the actor's invulnerable state
| ||||||||||
| abstract void |
setAngle(float angle)
Sets the actor's facing angle
| ||||||||||
| abstract void |
setHealth(float health)
Sets the actor's health
| ||||||||||
| abstract void |
setInvulnerable(boolean invulnerable)
Sets the actor's invulnerable state
| ||||||||||
| abstract void |
setLocation(AngledLocation loc)
Sets the actor's location
| ||||||||||
| abstract void |
setLocation(Vector3D pos)
Sets the actor's location
| ||||||||||
| abstract void |
setLocation(Location loc)
Sets the actor's location
| ||||||||||
| abstract void |
setVirtualWorld(int world)
Sets the actor's virtual world
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
net.gtaun.shoebill.object.Destroyable
| |||||||||||
Applies a animation for the actor
| animLib | Animation library |
|---|---|
| animName | Animation name |
| animSpeed | Animation speed (default is 4.1) |
| loop | If the animation should loop |
| lockX | If the actor return to their old x-location (false = return to old, true = stay at new) |
| lockY | If the actor return to their old y-location (false = return to old, true = stay at new) |
| freeze | If the actor should be frozen while the animation is playing |
| time | How long the animation should play (0 = infinite) |
Clears all animations from the actor
Get a actor by it's id
| id | Actor id |
|---|
Get all actors available
Gets the facing angle of the actor
Get the current health of the actor
Get the internal id of the actor
Gets the location of the actor
Gets the model if the actor
Gets the actor's pool size
Gets the virtual world of the actor
Checks if the actor is streamed-in for a specific player
| player | Player to check |
|---|
Gets the actor's invulnerable state
Sets the actor's facing angle
| angle | Facing angle |
|---|
Sets the actor's health
| health | Health |
|---|
Sets the actor's invulnerable state
| invulnerable | If he's invulnerable or not (true = yes, false = no) |
|---|
Sets the actor's location
| loc | Location |
|---|
Sets the actor's virtual world
| world | WorldID |
|---|