Project

General

Profile

Bug #2229

Entity method :Jump broken

Added by flibbidy almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
crash
vbulletin_issue_id:

Description

when on grid and in jump range of a stargate, executing the below script should jump you though the gate, however, either nothing happens or the game crashes to desktop.

 

 

#define GROUP_STARGATE     10

function main()
{

    if ${Entity[GroupID =GROUP_STARGATE](exists)}
        {
            echo Stargate ${Entity[GroupID =GROUP_STARGATE].Name} found on grid!
        }    
        else
            {
            echo No Stargate found on grid :(
            }

    if ${Entity[GroupID =GROUP_STARGATE](exists)}
    {
        if ${Entity[GroupID =GROUP_STARGATE].Distance} < 2499
        {
            echo Stargate ${Entity[GroupID =GROUP_STARGATE].Name} is in range to jump!
        }
        else
            {
            echo Stargate ${Entity[GroupID =GROUP_STARGATE].Name} is too far to jump :(
            }
    }
    
    if ${Entity[GroupID =GROUP_STARGATE](exists)} && ${Entity[GroupID =GROUP_STARGATE].Distance} < 2499
    {
        echo Stargate ${Entity[GroupID =GROUP_STARGATE].Name} is on grid and in range, executing Jump command
        Entity[GroupID =GROUP_STARGATE]:Jump
    }

}

No data to display

Also available in: Atom PDF