Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → How to detect surface?
How to detect surface?
2007-04-13, 4:15 PM #1
Is it possible to detect the surface flags that the player is standing on?

This command:

Code:
if(GetSurfaceFlags(player, 0x10000))


doesn't seem to do the trick.

Any help MUCH appreciated...

Thanx in advance.

_Glitch(!)
"Logic is wreath of pretty flowers... which smell bad!" -- Mr. Spock
2007-04-13, 5:39 PM #2
The difficult way would be to use unpatched JK and something like the TSDS.
The TSDS detects "touched" messages and would need to be changed to detect attachment.

The easy way would be to use a patched JK (with JKUP) and one of the new cog verbs to get the surface that the player is attached to. Then you can get its flags. The new cog verb:
surfaceIndex = GetThingAttachSurface(thingIndex); // Returns -1 if not attached to a surface

:)
2007-04-13, 11:50 PM #3
WoW...!!!

Thanks, Zeq -- been rackin' my brain on a way to do it: ye hath saved the day!

Thanx!

no -- THANX!!!

_Glitch(!)_
"Logic is wreath of pretty flowers... which smell bad!" -- Mr. Spock

↑ Up to the top!