[Opensim-dev] NULL_Key does not equal FALSE
Frans
mrfrans at gmail.com
Wed Nov 6 00:51:21 UTC 2019
Hi,
We have upgraded the OSCC grid to version 0.9.1.0, and I noticed a change
in script behavior.
in the past, in version 0.8.2.1 for example, NULL_KEY
or 00000000-0000-0000-0000-000000000000 would evaluate as FALSE when put in
a IF statement.
In the latest version it evaluates as TRUE.
Is this the intended behavior?
Example Script:
> default
> {
> state_entry()
> {
> llSitTarget(<0,0,0.5>, ZERO_ROTATION );
> }
> changed(integer change)
> {
> if(change & CHANGED_LINK)
> {
> key agent = llAvatarOnSitTarget();
> llOwnerSay((string)agent);
> if(agent)
> {
> llInstantMessage(llAvatarOnSitTarget(), "test");
> }
> }
> }
> }
Regards,
--
Frans Charming
Jeroen Frans
More information about the Opensim-dev
mailing list