+ Reply to Thread
Results 1 to 3 of 3

Thread: applyForce

  1. #1
    Wire Amateur Aaron113's Avatar
    Join Date
    Jan 2010
    Posts
    31

    Default applyForce

    How would I find both of these because right now it will only find props and not players.
    Code:
    if (findCanQuery()){
        
        findByClass("prop_physics")
        PropsDeny=findToArray()
        
        findExcludePlayer(owner())
        for (I=1,Imune:count()){
            findExcludePlayer(Imune[I,string])
        }
        findByClass("player")
        Target=findToArray()
    }

  2. #2
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: applyForce

    You would have to use 2 separate find events, because you can only use 1 per findCanQuery().
    Try:
    Code:
    @persist SearchProps [PropsDeny Target Immune]:array
    if(findCanQuery())
    {
        if(SearchProps)
        {
            findByClass("prop_physics")
            PropsDeny = findToArray()
            SearchProps = 0
        }
        else
        {
            findExcludePlayer(owner())
            for(I = 1, Immune:count()){findExcludePlayer(Immune[I,string])}
            findByClass("player")
            Target = findToArray()
            SearchProps = 1
        }
    }
    That will search for props 1 find event, then players the next, then props again, etc.



  3. #3
    Wire Amateur Aaron113's Avatar
    Join Date
    Jan 2010
    Posts
    31

    Default Re: applyForce

    Ok a new question popped up, can I use findbyClass("sent") or "ragdoll" or "vehicles" to target those?

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots