Raised This Month: $ Target: $400
 0% 

Touching an illusionary


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Schwabba
Senior Member
Join Date: Apr 2008
Old 01-28-2012 , 13:36   Touching an illusionary
Reply With Quote #1

Hi,

i know it's not possible to touch an illusionary. But how can i check if i'm inside an illusionary?
Schwabba is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 01-28-2012 , 21:30   Re: Touching an illusionary
Reply With Quote #2

You can check if a player is inside a cuboid anytime, if you want a specific illusionary that's a cuboid, get it's mins and maxs, add and remove it from the origin and you have your two corners to check between... however, checking must be done using a task or think entity.

Still... have you tried setting pev_solid to SOLID_TRIGGER to that illusionary entity ?
__________________
Hunter-Digital is offline
Schwabba
Senior Member
Join Date: Apr 2008
Old 01-29-2012 , 02:41   Re: Touching an illusionary
Reply With Quote #3

This worked:
PHP Code:
public pfn_keyvalue(ent
{
    if(
is_valid_ent(ent))
    {
        new 
classname[33]
        new 
keyname[33]
        new 
keyvalue[33]
        
copy_keyvalue(classname,32,keyname,32,keyvalue,32)
        if(
equal(classname"trigger_multiple"))
        {
            
entity_set_int(entEV_INT_solidSOLID_TRIGGER)
        }
    }

I changed the illusionary to trigger_multiple, i don't know if it works with illusionary, but with multiple it works.


I thought i tried that yesterday already, but maybe i just was too sleepy.


But still thanks alot.


On the version before i had no entities, just coordinates and i did it with a cuboid that i created myself with amxx like you said on your post and checked it with a task, but that was too slow for me, because i want it instantly.

Last edited by Schwabba; 01-29-2012 at 02:43.
Schwabba is offline
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 02:49.


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