Raised This Month: $ Target: $400
 0% 

FM_Touch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 09-03-2013 , 14:28   FM_Touch
Reply With Quote #1

How can i detect if someone is touching a speciel sprite like
Code:
sprites/white.spr
in FM_touch?
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-03-2013 , 17:01   Re: FM_Touch
Reply With Quote #2

Never use FM_Touch and pfnTouch, rather use register_touch

For your sprite, sprite ENTITY needs to have a size and a solid_* property correctly set.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 09-04-2013 , 09:43   Re: FM_Touch
Reply With Quote #3

How can i make this Shoot laser code to a sprite entity ?

Sorry im new to making sprite entity :/

Need a good exemple or a tutorial

Code:
stock Player_ShootLaser(iPlayer) 
{
	new iPlayerOrgin[3]
	get_user_origin(iPlayer, iPlayerOrgin, 3)
	
	message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
	
	write_byte(TE_BEAMENTPOINT)
	write_short(iPlayer | 0x1000) 
	write_coord(iPlayerOrgin[0])
	write_coord(iPlayerOrgin[1])
	write_coord(iPlayerOrgin[2])
	
	write_short(Lasersprite)
	write_byte(0)                              
	write_byte(10)                             
	write_byte(1)
	write_byte(5)                           
	write_byte(0) 
	
	static r, b;
	r = random(256)
	b = random(256)
	
	write_byte( r)
	write_byte( 0)
	write_byte( b)
	
	write_byte(255)                             
	write_byte(10)                              
	message_end()
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 09-04-2013 , 11:31   Re: FM_Touch
Reply With Quote #4

lasermine plugin might help you
akcaliberg is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 09-04-2013 , 14:49   Re: FM_Touch
Reply With Quote #5

Nah that didnt help me :/
I want to create so when you touch in the function
Code:
 register_touch
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
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 19:08.


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