SRL Archive - Reflection Help

UID's


gerauchert

2008-09-04 20:16:07

How would I get the uid of a static object? for example if i wanted to get the the UID of the waterpump in fally…

How can I get SCAR to spit out what the UID is so i can use it? Cant seem to get this shit right.


Writeln(IntToStr(GetObjectAt(2948,3381)));

Doesnt compile… what does it need to be?

Method

2008-09-04 20:20:21

Writeln(IntToStr(GetObjectAt(2948,3381).objType));

That should work, I'd think.

TViYH

2008-09-04 20:21:23

I think you have to use the findobject reflection function..

gerauchert

2008-09-04 20:24:31

From: Method
Writeln(IntToStr(GetObjectAt(2948,3381).objType));

That should work, I'd think.


Works perfect.

Thank you :D

Nava2

2008-09-04 20:24:33

Use this:

Just fill in tilex, and tiley, then hit play.