Quantcast

Jump to content

» «
Photo

Parameters affect Ped & environment

2 replies to this topic
Gian_Yagami
  • Gian_Yagami

    Snitch

  • Members
  • Joined: 08 Nov 2011

#1

Posted 07 April 2013 - 12:53 AM Edited by Gian_Yagami, 07 April 2013 - 05:37 AM.

Guys blush.gif
I want to make script affecting environment and Peds, like Control nearly Peds mod, I am using script which OPcode make use of Global Variable $PLAYER_ACTOR , it's possible to make new Global variable for Peds & Environment.

And Can Cleo Script Read Multiple Label as Check something?
example:
CODE
:LABEL
wait 0 ms
if
  Actor.Health(1@) < 10
  jf @LABEL
jump @ACTON_1

:LABEL_2
wait 0 ms
if and
  Actor $HUMAN have weapon 28
  Actor $HUMAN dead
jf @LABEL_2
jump @TERRA


It's just example tounge.gif useless
Okay look, that Check Label. If script have be read and reading another label, can this both label always active. the $HUMAN that I means pedestrian and all NPC character.

ZAZ
  • ZAZ

    Kernlochbohrer

  • Members
  • Joined: 10 Jan 2005
  • European-Union

#2

Posted 07 April 2013 - 01:15 PM

Do the jump instructions in that way to can bind the checks like a chain, in one Loop
but don't use global variables in cleo scripts unless $PLAYER_ACTOR, $PLAYER_CHAR and $ONMISSION


CODE
:label_1
wait 0
if
condition A
jf @label_3
if
condition B
jf @label_5
action
jump @label_1

:label_3
if
condition C
jf @label_1

:label_5
if
condition D
jf @label_1
action
jump @label_1

Gian_Yagami
  • Gian_Yagami

    Snitch

  • Members
  • Joined: 08 Nov 2011

#3

Posted 08 April 2013 - 08:07 AM

QUOTE (ZAZ @ Sunday, Apr 7 2013, 13:15)
Do the jump instructions in that way to can bind the checks like a chain, in one Loop
but don't use global variables in cleo scripts unless $PLAYER_ACTOR, $PLAYER_CHAR and $ONMISSION


CODE
:label_1
wait 0
if
condition A
jf @label_3
if
condition B
jf @label_5
action
jump @label_1

:label_3
if
condition C
jf @label_1

:label_5
if
condition D
jf @label_1
action
jump @label_1

Okay I'll try if nothing another method sad.gif
I've once read, that there is Global Variable in Cleo have itself, Using Syimbol @ , Right? please teach me if you know
I forgot put this Question, How to making own OPcode?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users