View Single Post
Old 17-02-20, 13:18   #616
smcandrew
Hobbyist
 
smcandrew's Avatar
 
Join Date: Aug 2008
Location: UK
Posts: 19
Default

I'm trying to figure out how to replicate the TestPosition script using the plugin. I've had a look through the tutorials / documentation, and I have this so far:

Code:
	StrTestPositionCmd MyPosition;
	StrBoxCollisione *pDist;
    StrBoxOrienting *pOrient;
	pDist = &MyPosition.DatiPosition.Distance;
    pOrient = &MyPosition.DatiPosition.Orienting;

    pDist->MinX = 0-256;
    pDist->MaxX = 0+256;
    pDist->MinY = 253-129;          
    pDist->MaxY = 253+640;
    pDist->MinZ = -379-256;
    pDist->MaxZ = -379+256;

    pOrient->OrientHMin = -16384;
    pOrient->OrientHMax = +16384;
    pOrient->OrientVMin = -1000;
    pOrient->OrientVMax = 1000;
    pOrient->OrientRMin = -1000;
    pOrient->OrientRMax = 1000;

	MyPosition.IdTestPosition = -1;
	MyPosition.Flags = TPOS_FOUR_HORIENT;
	MyPosition.Slot = ???


	if (CheckPositionAlignment(&MyPosition, ???) == true)
	{
			 //PERFORM FLIP EFFECT	
	}
For the flag I want to use the TPOS_FOUR_HORIENT, however I'm not sure what to put in the slot? If I want a specific Moveable do I just put that number? That didn't seem to work for me. Also in the CheckPositionAlignment second arguement, I'm not sure what needs to go in there either. Does anyone have any ideas?

Thanks!
smcandrew is online now   Reply With Quote