CBlob::setPosition

From King Arthur's Gold Wiki
Revision as of 00:10, 29 September 2012 by Ardivaba (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sets a new position for the blob.


This function will set the new position for the blob.

void setPosition( Vec2f pos )


Example from: Base/Rules/CommonScripts/Editor.as (This will create a block blob to player's mouse cursor position)

CBlob @block = CreateBlob( "genericitem", "Entities/Structures/Stone/Block1x1.cfg" );
block.setPosition(getControls().getMouseWorldPos());


Object method of: CBlob