SA-MP Forums Archive
Invisible dynamic doors! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Invisible dynamic doors! (/showthread.php?tid=466514)



Invisible dynamic doors! - James Bob - 28.09.2013

Alright so I've recently scripted in Dynamic Businesses system anyways I tried deleting the old dynamic doors for the old shops but now they've turned invisible and you cannot delete them, any ideas?


I'm uploading a video to post, in-case you don't understand it.


Re: Invisible dynamic doors! - Voxel - 28.09.2013

Did you remove them at CreateObject or CreateDynamicObject under OnGameModeInit ?
Also be sure to remove any kind of entrence points like inder IsPlayerInRangeOfPoint or other places.

good luck.


Re: Invisible dynamic doors! - James Bob - 28.09.2013

Alright here's the video: https://www.youtube.com/watch?v=hFSDlQKm8Dc


Re: Invisible dynamic doors! - BullseyeHawk - 28.09.2013

Didn't under anything about the video, uhm. Explain at what second what happens?-.
Excuse me if I can't spot INVISIBLE doors.


Re: Invisible dynamic doors! - Voxel - 28.09.2013

Yeah go in your gamemode and look up the coords of that position and delete the entrence at IsPlayerInRangeOfPoint

also if u mean the door that u see there thats default object by san andreas it self ;s


Re: Invisible dynamic doors! - James Bob - 28.09.2013

Quote:
Originally Posted by BullseyeHawk
Посмотреть сообщение
Didn't under anything about the video, uhm. Explain at what second what happens?-.
Excuse me if I can't spot INVISIBLE doors.
There was a dynamic door but I removed it ( deleted it ) and now I can still enter it - the symbol is gone but it's still there..


Re: Invisible dynamic doors! - MarTaTa - 28.09.2013

After you use /deletebiz, make sure you save all the business files. I think that you are just destroying just the pickup without reseting the information for the certain business. We can help you more if you show us the code ?


Re: Invisible dynamic doors! - BullseyeHawk - 28.09.2013

...

Well, let's agree that its a dynamic business, not a dynamic door.
Door, by its default translation. "A door, object. Something you interact with thats square with a handle (?)"
The pickup is a dynamic pickup /BUT/ its completly not a door, you can reference it as a 'business'.

Anyway, lets move on.
Could you please share the /deletebusiness [id] command?
I have a feeling you are not reseting the vars that hold the whole business information.
(Ex => BusinessInfo[bizID][bizTypeVar];)

You are reseting the pickup model and the 3DText, I see that.
Tho, we can't see if you are reseting the vars.

--> Again, post up your delete business command.