Re: Little COG help


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]

Posted by CogKing on February 05, 1998 at 17:32:10:

In Reply to: Little COG help posted by GMS_SLUG on February 05, 1998 at 17:20:08:

> player = GetSourceRef();

Fetch the activator (i.e. the thing that caused activated: to be called, NOT the
thing that was activated:, that is GetSenderRef() ) in the "player" variable.

> actorFlags = GetActorFlags(player);

Fetch the actor flags of "player" in the "actorFlags" variable

> if(BitTest(actorFlags, 4))

Test will be true if bit 4 is set in actorFlags

If you refer to the Specs :
0x0004Players fieldlight

That bit is set if the fieldlight is on !

Hope this helps.

-CogKing


Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]