Home   Help Search Login Register  

Author Topic: no real topic  (Read 509 times)

0 Members and 1 Guest are viewing this topic.

basil_rs2

  • Guest
no real topic
« on: 17 Nov 2003, 19:17:53 »
maybe one of you can help me...

do you know a workaround for missing
getRank command ? capture unit skill is no problem ..*?*

why is it that every hit/engine... event crashes after
savegame load??

why it is impossible to catch a unique unit id.
or is it possible to replace spaces in unit name
with "_" or something else to keep it scriptable.
I tryed to get a unique id from "list trigger" array
position, but this sucks if you add units after mission
start ...
 :-\

Is it possible to create Markers from script ?
something like createUnit or _marker = "Marker" camCreate getpos _something.
Or is it possible to handle markers like objects ?

Is it possible to prevent hit event from executing given script more than one time... I realized that sometimes event handlers use to execute code multiple times.
I tryed to fix this with a random delay at event script
start and a tokken global var. the delay sucks anyway and this will never be realy failsave...

...

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:no real topic
« Reply #1 on: 17 Nov 2003, 19:50:05 »
Hey !


1) No clue. Don't think you can, but I may be wrong.

2) Game no longer crashes under 1.94. Get it NOW !

3) Didn't understand the question.  ???

4) Just create empty markers that you then "SetMarkerType" as you wish. To put them where you want, use the SetMarkerPos command. I'm not sure I grasp what you mean either when you say :

Quote
Or is it possible to handle markers like objects ?

5) Use the "RemoveEventHandler" or "RemoveAllEventHandlers" command.


Good luck, hope this helps.


Ig.




Grendel

  • Guest
Re:no real topic
« Reply #2 on: 18 Nov 2003, 05:11:41 »
I don't know if this will help, but here's a suggestion on the rank thing:

If you are just trying to determine who is in charge of a group (which is  the highest ranking unit-not necessarily one specific rank or the other) then you can use the "leader" command.

That way you can always find out who is currently in charge, even if the original officer/Nco in charge has been killed.

-Grendel

basil_rs2

  • Guest
Re:no real topic
« Reply #3 on: 21 Nov 2003, 17:50:45 »
leader group unit can be a private if other units joins it, even if unit is colonel ...
so this wont work
 >:(

every unit have a ID, but its not very useful.
I need something like this

call format["GLOBAL_%1 = [some, stuff]", _unit]

_unit wont work because of spaces. same with name _unit. on the other side unit names are limited. also if a unit dies and another takes its position _unit (string) can overlap a bit .  :-\

... IÂ'm confused too
 :)

Grendel

  • Guest
Re:no real topic
« Reply #4 on: 21 Nov 2003, 21:41:12 »
 :P, yeah, I didn't think about units joining another group...

I'll try and see what I can do...


-Grendel