| QUOTE (arijitsen @ Thursday, Sep 6 2012, 16:23) |
Hi Just a simple question HOW TO CHECK THE PLAYER IS AT THE INTERIOR OF AMMUNATION ?? Thanks for reply ...  |
codes of the Intman thread:
| CODE |
094B: v$ACTIVE_INTERIOR_NAME = get_active_interior_name_from_actor $PLAYER_ACTOR // 16-byte string 00D6: if 8846: not string v$ACTIVE_INTERIOR_NAME empty // same as 0844 004D: jump_if_false @INTMAN_2974 ... .. 07B0: get_active_shop_name_to s$CURRENT_SHOP_GXT_NAME // 8-byte string ... .. 00D6: if or 08F9: v$ACTIVE_INTERIOR_NAME == "AMMUN1" 08F9: v$ACTIVE_INTERIOR_NAME == "AMMUN2" 08F9: v$ACTIVE_INTERIOR_NAME == "AMMUN3" 08F9: v$ACTIVE_INTERIOR_NAME == "AMMUN4" 08F9: v$ACTIVE_INTERIOR_NAME == "AMMUN5" 004D: jump_if_false @INTMAN_2869 ... 0913: run_external_script 60 (AMMU) |
codes of the AMUNAT thread:
| CODE |
00D6: if 8844: not string s$CURRENT_SHOP_GXT_NAME empty // same as 0846 004D: jump_if_false @AMUNAT_7604 ... .. 00D6: if 05AD: s$CURRENT_SHOP_GXT_NAME == 'AMMUN1' // Ammu-Nation 004D: jump_if_false @AMUNAT_884 |
i don't know why R* used 094B: and 07B0: and checked a 16-byte string as well a 8-byte string
maybe because they checked in the Intman thread also for other interiors