SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 05/09/2017, 09:33 PM   #1
CMH
Little Clucker
 
CMH's Avatar
 
Join Date: Jan 2015
Posts: 23
Reputation: 3
Angry Object detection from single player????

Hello.
So I have a question. is it possible to detect a default object in the game, for example CJ's house?



I thought about making a home system, and I want my player to create his house but not wherever he is, but where he is a single-player house.

Thank you in advance
__________________
My Work
===================================
FilterScript :
1 :Dynamic Control Server
2 :IPhone 7
===================================
Maps :
1 :Full Hd LSPD Interior
===================================
CMH is offline   Reply With Quote
Old 05/09/2017, 09:40 PM   #2
Kane
Gangsta
 
Kane's Avatar
 
Join Date: Sep 2012
Posts: 822
Reputation: 130
Default Re: Object detection from single player????

I don't believe you can but if you're wondering how to remove it:

http://wiki.sa-mp.com/wiki/DisableInteriorEnterExits

Disable all the interior entrances and exits in the game (the yellow arrows at doors).
Kane is offline   Reply With Quote
Old 05/09/2017, 09:43 PM   #3
CMH
Little Clucker
 
CMH's Avatar
 
Join Date: Jan 2015
Posts: 23
Reputation: 3
Default Re: Object detection from single player????

Quote:
Originally Posted by Arthur Kane View Post
I don't believe you can but if you're wondering how to remove it:

http://wiki.sa-mp.com/wiki/DisableInteriorEnterExits

Disable all the interior entrances and exits in the game (the yellow arrows at doors).
It's not about corners, I want to detect the object entirely from single player. if the player is in the single-player house area, he can use an order
__________________
My Work
===================================
FilterScript :
1 :Dynamic Control Server
2 :IPhone 7
===================================
Maps :
1 :Full Hd LSPD Interior
===================================
CMH is offline   Reply With Quote
Old 05/09/2017, 09:46 PM   #4
Kane
Gangsta
 
Kane's Avatar
 
Join Date: Sep 2012
Posts: 822
Reputation: 130
Default Re: Object detection from single player????

What corners...

Single player houses are only interiors. http://weedarr.wikidot.com/interior

If you really wanna spend time on doing it, what you could do is make an array with all the single player interior coordinates and then check if a player is near one with a function or command.
Kane is offline   Reply With Quote
Old 05/09/2017, 09:51 PM   #5
CMH
Little Clucker
 
CMH's Avatar
 
Join Date: Jan 2015
Posts: 23
Reputation: 3
Default Re: Object detection from single player????

Quote:
Originally Posted by Arthur Kane View Post
What corners...

Single player houses are only interiors. http://weedarr.wikidot.com/interior

If you really wanna spend time on doing it, what you could do is make an array with all the single player interior coordinates and then check if a player is near one with a function or command.
We understand ourselves wrong.
I want to use a command only if I am in the area of a default (single player) object.
I mean, if I'm near a trash can I can use cmd / throw trash
__________________
My Work
===================================
FilterScript :
1 :Dynamic Control Server
2 :IPhone 7
===================================
Maps :
1 :Full Hd LSPD Interior
===================================
CMH is offline   Reply With Quote
Old 05/09/2017, 10:06 PM   #6
Dayvison_
High-roller
 
Dayvison_'s Avatar
 
Join Date: Nov 2013
Posts: 1,308
Reputation: 200
Default Re: Object detection from single player????

Go to location in the map editor
click on the object two times
object details will appear
__________________


Dayvison_ is offline   Reply With Quote
Old 05/09/2017, 10:14 PM   #7
CMH
Little Clucker
 
CMH's Avatar
 
Join Date: Jan 2015
Posts: 23
Reputation: 3
Default Re: Object detection from single player????

Quote:
Originally Posted by Dayvison_ View Post
Go to location in the map editor
click on the object two times
object details will appear
I do not want to do a script for each object. I want to work on all the similar objects in the game
Eg: if I make a command for / enter
the player can enter an interior even if he is at any home model in the game
__________________
My Work
===================================
FilterScript :
1 :Dynamic Control Server
2 :IPhone 7
===================================
Maps :
1 :Full Hd LSPD Interior
===================================
CMH is offline   Reply With Quote
Old 05/09/2017, 10:29 PM   #8
Dayvison_
High-roller
 
Dayvison_'s Avatar
 
Join Date: Nov 2013
Posts: 1,308
Reputation: 200
Default Re: Object detection from single player????

in this site, you can view objects by their categories. With this you can make a pawn array to store similar objects
__________________


Dayvison_ is offline   Reply With Quote
Old 05/09/2017, 11:33 PM   #9
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,075
Reputation: 283
Default Re: Object detection from single player????

I guess Colandreas can help you out?
__________________

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detection of is player near any source of water Beckett Scripting Help 2 04/05/2015 10:56 AM
Creating a per player plugin detection method RajatPawar Scripting Help 3 02/11/2013 04:49 PM
Object Hit Detection Avi57 Scripting Help 4 12/06/2013 08:06 AM
Object aiming detection xDeadlyBoy Scripting Help 3 09/10/2012 07:09 PM
Player angle and walls detection arnutisz Help Archive 5 04/02/2010 11:56 AM


All times are GMT. The time now is 03:21 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.