modding:function:objaccelerate
Discuss this page on this pages TalkPage
objAccelerate
| Syntax | (objAccelerate obj angle thrust [ticks]) |
|---|---|
| Arguments | obj: The object to accelerate |
| angle: Angle (direction) to accelerate; 0 is to the right | |
| thrust: power of thrust | |
| [ticks]: Duration, in ticks, that the acceleration lasts | |
| Returns | velVector; Velocity/vector |
| Category | spaceObject functions |
| Description | Accelerates a spaceObject in the given direction with the given thrust for the given duration, in ticks. |
Example
(objAccelerate gPlayership 0 300 30)
Accelerates the playership to the right with a thrust of 300 for one second.
Return to Space Object functions list
Return to functions list
modding/function/objaccelerate.txt · Last modified: by xephyr
