Home   Help Search Login Register  

Author Topic: Any moron nearby? ...and then... som'n  (Read 820 times)

0 Members and 1 Guest are viewing this topic.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Any moron nearby? ...and then... som'n
« on: 14 Apr 2003, 18:43:46 »
 :D eeeyyyye, if it isn't sweet ole "General ed."  :joystick: well met!  :cheers:

here's what:

I have this bloke in a car, and he's a ressy (sort of a renegade actually).
Now, he ain't me (player) but an AI-moron, and the thing is that I want him to
have this dare devil'ish super-duper hearing so that if anyone NOT-him gets near
(or the other way around, as he drives through a town in his vehicle), then he will stop/get out/hit the dirt.

In short:

Looped condition = any dood distance Bob < 25

On Activation = [Bob] ordergetin false & get out (in combat mode or alike)

wassup w/ that condition spell, d00ds  ???


Hank ya' in advance!  :-* 8)


Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Any moron nearby? ...and then... som'n
« Reply #1 on: 14 Apr 2003, 18:59:33 »
countside east thislist > 1 AND countside west thislist > 1

bob move getpos bobdroveheregamelogic


another trigger grouped to bob

this

bob setbehaviour "stealth"; bob setcombatmode "red"; bob unassignvehicle vehicle; bob ordergetin false


?
Not all is lost.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Any moron nearby? ...and then... som'n
« Reply #2 on: 14 Apr 2003, 18:59:53 »
area of trigger:   whole map
activation:   anybody present     repeatedly
                 
condition:   ("_x distance Bob < 25" count [ [thislist] - [Bob] ]) >= 1

I don't know enough about the syntax of arrays ..... but hopefully you can see what I'm getting at.


OR create a trigger and setpos it to Bob's postion all the time so that it's always around him.      

size:     25x25  ellipse
activation box:   anybody present repeatedly
condition:   this and (count thislist > 1)
« Last Edit: 14 Apr 2003, 19:06:23 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Any moron nearby? ...and then... som'n
« Reply #3 on: 14 Apr 2003, 19:29:17 »
*cough*

Magcuba's way is way better  ;D
Not all is lost.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Any moron nearby? ...and then... som'n
« Reply #4 on: 14 Apr 2003, 21:12:32 »
 :o arty mate, everytime I get caught staring at yer stinking avy there, I instantly feel urged to smash my right fist into his funky fiaz!  >:( ;D

What a great avatar, man I just can't stop staring!  :noo: :thumbsup:


*oh, off there*

uuum yeah, what can I type? I am most stunned by both of yer suggestions (thx d00ds), and can use it in my mission......

 :)


.......



 :)


..........


 :)


..........


 ::)


..........



 :-X


.........


 :help:


.........


 ;D but I just can't use 'em for what I have in mind!  :-X ;D sorry, my bad there!!

Here's waddup :

I have a vehicle (an addon) and wanna do some tests with it.... in missions.
And I wuz just wondering if it's possible to add an intern scroll that checks for stuff like the stuff mentioned above.

Now, if I run a script via the event handler spells then I don't have a trigger, do I ?
Me dink naught. On the other hand - one could create it, right?! (dunno how though).

hmmmm....

what if I wanted similar stuff to sort of 'auto-happen' from within my addon  ??? without a trigger?




Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Any moron nearby? ...and then... som'n
« Reply #5 on: 14 Apr 2003, 21:15:13 »
eeeurgh... Tombish  ::)
Proud Member of the Volunteer Commando Battalion

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Any moron nearby? ...and then... som'n
« Reply #6 on: 14 Apr 2003, 21:24:24 »
LCD?   LCD-ee?    Are you they-ayre?    Tomb-aby neeeeeds you.

You could have a bunch of triggers sitting at the corner of the map ready to be called into postition, obviously using variables to prevent them going off at the wrong time .... but it sounds like what you really need in your scrolls are arrays of units which are alive at any given moment, and that's beyond my ken.



Artak, who the hell is the avatar man?
Plenty of reviewed ArmA missions for you to play

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Any moron nearby? ...and then... som'n
« Reply #7 on: 14 Apr 2003, 21:36:42 »
eeeurgh... Tombish  ::)

 ::) yanno, I am the proud father of monsters like LCD  ::)




( ;D )


================

Still wanna knowsabout this, d00ds - seriously!  :afro:

I just fear that what I'm after is the "never-to-be-found" code/array called :

    ANY_UNIT(S)

Like when a trigger can be set to fired by ANYBODY

How the bell can I add this feature to a script  ???



==============

[extention time] :

Look, imagine if you had this aura like egg shaped energy field surrounding your bod...

Bah forget it!  ::)

Just tell me if I can run a scroll that checks if anyone gets near my ass at anytime.



thx m8s  :-*


« Last Edit: 14 Apr 2003, 22:03:45 by Tomb »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Any moron nearby? ...and then... som'n
« Reply #8 on: 14 Apr 2003, 22:10:28 »
Quote
1.91  - New: New scripting function typeOf <object>.
a) could that <object> be type of any?
b) would this be of satisfactory?
c) don't you just want to spill out everything you've done in your life when you look at my avy and start crying against his shoulder?

d) @ macguba: it is I, Artak

e) I remember when LCD was just a little private wearing diapers. He actually talked a lot better then when not influenced by the horrific Tombster

g) I skipped f on purpose






f)  ;D
Not all is lost.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Any moron nearby? ...and then... som'n
« Reply #9 on: 15 Apr 2003, 00:12:17 »
syntax will be wrong, but is this what you want?   I can't help feeling I'm not understanding the problem correctly.... or are you just seeking an elegant solution?


#loop
~1
[baadasses] = [units grp1] + [units grp2] etc ... dull to type out them all, obviously
?("_x distance Bob < 25" count baadasses) >= 1:goto "a"
goto "loop"

#a
whatever


@Artak - thank god for that, I thought there was a muppet I didn't recognise. ;D
« Last Edit: 15 Apr 2003, 00:13:51 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Any moron nearby? ...and then... som'n
« Reply #10 on: 15 Apr 2003, 11:41:39 »
 ::) well, I'm basically fooling around w/ some codes to see which is best for this & that,
and (as always) I'm trying to get to know the whole coding stuff a lil' better via fiddling with quickly made/quickly deleted addons to see what works & what doesn't (for future use, off course).  :P :)

I have something in mind but I wanted to test a few general things first.

Among them is the question wether or not it's possible to make a guy/driver/commander/etc. detect ANY living creature within a certain radius from him, and then let him react (do whatever) in the SAME way - no matter which side these 'foreigners' around him belong to.

So as he drives through the land/towns and such, he's supposed to react like a renegade, but THEY (in theory) are also supposed to react - and thats the hard part, as I dunno how to pick out random units from random sides?  ???

In fact, I don't even know if it's possible at all?!  :-X But it's an interesting thought.


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Any moron nearby? ...and then... som'n
« Reply #11 on: 15 Apr 2003, 13:32:15 »
Ah, so the problem is not so much him (since he always reacts in the same way) but the people who see him.     You have to check what unit it is and what side it is on, so if its civvy they hide in a bush, it its east they shoot at him, and if its west they jump in a jeep and chase him.

Is that right?
Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Any moron nearby? ...and then... som'n
« Reply #12 on: 15 Apr 2003, 13:56:33 »
ROFL ;D

u stil need me ? ;D

make array ;D dat includes all da units round da map(nybody present triger covers da whole island - allunits = thislist on activision)

now in ur script :P do

Code: [Select]
@ "_X distance moron(name is bob right ?) < 25" count allunits > 0

add watever u want after dat ;D (btw mac - da @ command works in da sameway as trigs nd lag as much as trigs ;D :P

da sec thin u wanna is make em react ? lets make array of ppl dat r close 2 him ;D

in da same scrool do

"if (_x distance moron < 25) then {closeunits=closeunits+[_X]} else {closeunits=closeunits-[_X]}" foreach allunits

- al dat on 1 line so OFP wil accept it - now u have array w/ closeunits 2 use ;D

nythin else ?

@ every1 who talked bout me

muahahahahahahahahahahahahaha now u gotta read wat i writed :P

LSD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Any moron nearby? ...and then... som'n
« Reply #13 on: 15 Apr 2003, 14:21:44 »
whoah!  :o are ya sure this works, lsd ???  :D can't wait 2 test it!!!!
Right now, Im on a sh*t old comp at work (it even makes spelling erros, as if my own bad english wasn't enough)  ::) ;D

I must test this tonite! & if yer right, then this is a major breakthrough for me & the solution to numerous prob's that I've had in the last 6 months re. editing & scripting.

VERY, very interesting. (crosses fingers, cigarretes, toes, hair & dicks) (dicks  ??? :-X ;D )

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Any moron nearby? ...and then... som'n
« Reply #14 on: 15 Apr 2003, 14:26:26 »
prety sur :P

just make sure u give it enough time 2 activate da trig b4 execin da script - or u wont have allunits array ;D (i think 10 sec shud b enough ;D)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta