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 → getthingflags function
getthingflags function
2001-04-29, 8:41 AM #1
Could someone please tell me what is wrong with this? What's supposed to happen is that when you shoot at something (item), its flags change so that it becomes magsealed. In effect "activating shields". Please help!

This is what I wrote:
symbols

message damaged

thing item

end
#==========================================
code

damaged:

SetThingFlags(item,0x4);
return;

end
2001-04-29, 9:47 AM #2
You'll have to use something like

item = GetSenderRef();
Gravity isn't MY fault--I voted for velcro.
2001-04-29, 7:25 PM #3
I don't think an item gets damaged , so the message never gets called .... try another message type ...
2001-04-30, 5:37 PM #4
Damaged message may work. The JK specs states: "Damaged : Sent by a surface or thing when hit by a weapon." How else do you blow up those barrels?

But add the thing Boba Rhett gave. Put it as the first line after Damaged:



------------------
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton
2001-04-30, 5:45 PM #5
Quote:
<font face="Verdana, Arial" size="2">"Damaged : Sent by a surface or thing when hit by a weapon." How else do you blow up those barrels?</font>


Barrels are collide 3 , in other words they are shootable , the bullet will hit it , while a item , the bullet would go straight through it .... also a item doesn't have a health status.
2001-04-30, 9:46 PM #6
Ok I see some confusion. I didn't know that there was something actually called an item in JK. This was just a word to illustrate the point. The "item in question is a "thing", even an actor.

↑ Up to the top!