SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Editing Help (https://mb.srb2.org/forumdisplay.php?f=64)
-   -   SpawnObjectRelative and Upper/lower 16 bits question (https://mb.srb2.org/showthread.php?t=21014)

Flame 02-12-2007 07:20 PM

SpawnObjectRelative and Upper/lower 16 bits question
 
To any good SOCcers out there: I am trying to make a SOC at the moment and I am having a little difficulty with A_SpawnObjectRelative and with A_CapeChase having those upper/lower 16 bits things.

I am a bit confused on what they mean by the Upper/lower 16 bits, And Yet, I am trying to make something spawn at a specific Z height relative to the location of the spawner.

A_CapeChase:
Var1:
upper 16 bits = Z offset
^ How would I be able to set the Upper 16 bits for this?

A_SpawnObjectRelative:
var2:
var2 >> 16 = z
var2 & 65535 = type
^ About this as well, I'm not sure if this means that this would be able to spawn at a specific Z height as well, but I just need some advice on how I can set this.

SSNTails 02-13-2007 01:58 AM

http://www.analogx.com/contents/down...gram/pcalc.htm

To get 'upper 16 bits'

value << 16

'lower 16 bits' is just your value.

so,

var1 << 16 + var2 = final answer

Flame 02-13-2007 02:09 AM

Uh... I'm not really sure on how to use this Pcalc program, Nor do I fully understand what you said.

Would you mind explaining what you said, diffrently?


All times are GMT. The time now is 05:47 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.