GetWorldOrigin (script event)

From modwiki

Jump to: navigation, search

Description

Returns the current worldspace position of this entity (regardless of any bind parent).

Usage

In your script type...

vector getWorldOrigin()

Parameters

This script event does not accept parameters.

Examples

 
postition = $my_entity.getWorldOrigin();

Notes

This script event returns the worldspace postition of this entity as a vector.


Personal tools
Main