Jump to content

killzone_kid

Member
  • Content Count

    3703
  • Joined

  • Last visited

  • Medals

Everything posted by killzone_kid

  1. killzone_kid

    Spawn units when player near markers

    You probably want to use trigger tbh
  2. killzone_kid

    Spawn units when player near markers

    if (allPlayers findIf {_x distance2D _markerPos < 350} > -1) exitWith {
  3. killzone_kid

    Spawn units when player near markers

    This is horrendously inefficient code. Does marker position change? If not, you should store it and use that instead of querying it each time with getMarkerPos. Also use findIf instead of count.
  4. killzone_kid

    Screamer on kill

    That’s right, you can’t set variable on number. Better question is why do you want _killer to be a number instead of an object?
  5. killzone_kid

    Screamer on kill

    For testing the concept, sure, but is bad idea to use in production scripts. Raw call and spawn should be blacklisted in CfgRemoteExec
  6. killzone_kid

    Screamer on kill

    It is not exception, we don’t have exceptions, it is script error resulting from attempt to pass wrong argument type. If you want to check variable you can do it in 2 ways: isNil "_killer” or isNil { _killer } both described on the wiki
  7. killzone_kid

    Screamer on kill

    How did you come to this wrongful conclusion?
  8. killzone_kid

    Screamer on kill

    try in sqf does not do what you think
  9. Spawn AIs in the same group or use agents
  10. killzone_kid

    getMarkerSize for findSafePos

    getMarkerSize returns array of numbers, read wiki
  11. killzone_kid

    getMarkerSize for findSafePos

    You are not using getMarkerSize result
  12. killzone_kid

    Sleep not working after JIP

    Why did you use finishMissionInit?
  13. Try WeaponHolderSimulated_Scripted
  14. It was a joke if you didn't get it, but also a good example of how it may seem to someone unfamiliar with C++ that it might work. No need to rush with guns blazing.
  15. You lie! https://ideone.com/ar4xyn But yeah, this is not how you compare strings
  16. killzone_kid

    Switch code with no result?

    switch is case sensitive, this means the color name should match exactly, so "ColorRed" is not gonna match "colorRED", but == is not case sensitive also _marks = _marks + [_x] => _marks pushBack _x
  17. killzone_kid

    Two complex GUI questions.

    The question was more general how do you animate gui. And yes you can do magic with 3D controls
  18. killzone_kid

    Two complex GUI questions.

    No one stops anyone from providing custom radio models for a radio mod, sounds like you are looking for excuses to do things the hard way
  19. killzone_kid

    Two complex GUI questions.

    In this case you need ctrlAnimateModel which was available for at least a year
  20. killzone_kid

    Two complex GUI questions.

    ctrlSetAngle has been available for 3 years
  21. killzone_kid

    Two complex GUI questions.

    1. You can place controls group and place your buttons in it, when total height of all buttons exceeds controls group height, scroll bar will appear. 2. Provably uses ctrlSetAngle to rotate knobs
  22. killzone_kid

    Help with Syntax

    Look in .rpt and post the error, without knowing what it says difficult to guess
  23. Check https://community.bistudio.com/wiki/setTriggerStatements and https://community.bistudio.com/wiki/Magic_Variables#thisList
  24. Invalid syntax, you probably want selectPlayer
  25. killzone_kid

    Get unit insignia

    you probably want https://community.bistudio.com/wiki/squadParams
×