ID:266562
Apr 7 2002, 6:27 pm
|
|
How would I make it so when someone uses something like a cloaking device, the person who used it would be the only mob who could see yourself
|
Apr 8 2002, 2:25 am
|
|
Look out the SEE_SELF client.eye bit, and the invisibility var.
|
In response to Nadrew
|
|
didnt help :(
|
In response to Thief Jack
|
|
It explains exactly how to use it under "sight var (mob)" and "invisibility var (atom)"
|
In response to English
|
|
heres the code for making yourself invisible and isible and u cant tell me it doesnt work because i have tested it with all those newbie demos
obj/stealth icon = 'stealth.dmi' obj/stealth/verb/disappear() set src = usr.contents usr.invisibility = 1 view() << "[usr] disappears!" obj/stealth icon = 'stealth.dmi' obj/stealth/verb/appear() set src = usr.contents usr.invisibility = 0 view() << "[usr] appears!" |
In response to Sob
|
|
Sob i know that part but i want the usr to see himself
|
In response to Thief Jack
|
|
o
|
In response to Sob
|
|
I jus spent 5 minutes so i could make the usr see him/herself while they are invisible because you are to picky and heres the new code
obj/stealth icon = 'stealth.dmi' obj/stealth/verb/disappear() set src = usr.contents usr.invisibility = 1 usr.sight |= (SEE_SELF) view() << "[usr] disappears!" obj/stealth icon = 'stealth.dmi' obj/stealth/verb/appear() set src = usr.contents usr.invisibility = 0 view() << "[usr] appears!" Now you and only you will see yourself while invisible unless you make obj's for people to see invisible people and tell me if you need more help |
In response to Thief Jack
|
|
Thief jack wrote:
Sob i know that part but i want the usr to see himselfHmmmm obj/superstealththingy // hehe U like the name :) verb/stealth() if(usr.stealth==1) // Stealths on! usr.stealth=0 // turns off stealth! usr.invisability=0 // No more invisa mobby usr.sight &= ~SEE_SELF else // U dont have stealth on! usr.stealth=1 // turns on stealth! usr.invisability=1 // Ivisa mobby where he go usr.sight |= SEE_SELF This will only work if U have the obj Superstealththingy in your contents. Which means u need to make a get and drop verbs and the stealth verb things that go along with them K. -Green Limey Saying bye |
In response to Green Lime
|
|
dude your 5 minutes late i already answered the rest
|
In response to Sob
|
|
Sob wrote:
dude your 5 minutes late i already answered the rest Sorry I didnt know |
In response to Sob
|
|
I'm jus fast
|