Raised This Month: $ Target: $400
 0% 

[SOLVED] Entity spawn help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-24-2008 , 12:08   [SOLVED] Entity spawn help
Reply With Quote #1

If i spawn an entity at random co-ordinates, is there any way of finding if its in a wall, or unaccessable?
__________________

Last edited by minimiller; 08-24-2008 at 13:00.
minimiller is offline
Send a message via MSN to minimiller
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-24-2008 , 12:48   Re: Entity spawn help
Reply With Quote #2

Looking at this you could try
Code:
public In_Map(id)
{
	new Float:llevel
	pev(id,pev_light_level,llevel)

	if(!llevel)
		return 0;
	return 1;
}
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-24-2008 , 12:53   Re: Entity spawn help
Reply With Quote #3

Awesome! +k for you and GHW ;)

off topic:
Could this thread get any better?
I recieved help on a topic ive been pissing about with for ages and to top it off: we got dancing badgers and lobsters!
What a world we live in
__________________
minimiller is offline
Send a message via MSN to minimiller
Reply



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

Forum Jump


All times are GMT -4. The time now is 03:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode